Update Token Name Service Account

Update Token Name Service Account

Update the name of the specified api token for the given service account

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

id

string
token
Required

token


Request Body
UserApiToken2 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 ResponseContainerUserApiToken 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