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
{
    "tokenID": "string",
    "tokenName": "string",
    "account": "string",
    "accountType": "string",
    "lastUsed": 0,
    "dateGenerated": 0
}
string
tokenID
Required

The identifier of the user API token

string
tokenName
Optional

The name of the user API token

string
account
Optional

The account who generated this token.

string
accountType
Optional

The user or service account generated this token.

Possible values are : USER_ACCOUNT, SERVICE_ACCOUNT, INACTIVE_SERVICE_ACCOUNT,
integer As int64 As int64
lastUsed
Optional

The last time this token was used

integer As int64 As int64
dateGenerated
Optional

The generation date of the token.

Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns ResponseContainerListUserApiToken of type(s) application/json
{
    "status": {
        "result": "string",
        "message": "string",
        "code": 0
    },
    "response": [
        {
            "tokenID": "string",
            "tokenName": "string",
            "account": "string",
            "accountType": "string",
            "lastUsed": 0,
            "dateGenerated": 0
        }
    ]
}
status
Required

status

response
Optional

response