Vai al contenuto principale
PUT
/
api
/
v1
/
settings
/
users
/
tokens
/
{tokenid}
Update API token
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": {}
  }
}

Autorizzazioni

X-Aegister-Token
string
header
obbligatorio

Parametri del percorso

tokenid
integer
obbligatorio

API token ID.

Corpo

active
integer
obbligatorio

Set token active state (0 or 1).

Risposta

200 - application/json
error
integer

Any value different from 0 indicates an error.
More details can be found in messages.

Intervallo richiesto: 0 <= x <= 0
Esempio:

0

messages
array

If error is 1, contains zero or more details on the error.

Esempio:
[]
data
object