Generate Token Service Account

Generate Token Service Account

Returns the list of all api tokens for the service account. The newly created api token is the last element of returned list.

Request
URI
POST
https://{api_host}/api/v2/apitoken/serviceaccount/{id}
COPY
Path Parameters
string
id
Required

id


Request Body
UserApiToken of type(s) application/json
Optional

Show optional properties

{
    "tokenID": "string"
}
{
    "tokenID": "string",
    "tokenName": "string",
    "account": "string",
    "accountType": "string",
    "lastUsed": 0,
    "dateGenerated": 0
}
Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns ResponseContainerListUserApiToken of type(s) application/json
"ResponseContainerListUserApiToken Object"
object
status
Required

status

array of object
response
Optional

Wavefront user api token entity for update requests


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"tokenID:"string"}' https://{api_host}/api/v2/apitoken/serviceaccount/{id}