cURL
curl --request PUT \ --url https://app.aegister.com/api/v1/settings/users/tokens/{tokenid} \ --header 'Content-Type: application/json' \ --header 'X-Aegister-Token: <api-key>' \ --data '{ "active": 123 }'
{ "error": 0, "messages": "<array>", "data": { "id": 123, "name": "<string>", "data": {} } }
Updates Token state
API token ID.
Set token active state (0 or 1).
Any value different from 0 indicates an error. More details can be found in messages.
messages
0 <= x <= 0
0
If error is 1, contains zero or more details on the error.
error
1
[]
Show child attributes