SPA API Tokens
SPA: Updates an API Token
Updates an existing API token. Token value cannot be changed. Requires ROLE_INTEGRATOR or ROLE_ADMIN.
PATCH
/api/spa/api-tokens/{id}Authorizations
X-AUTH-TOKEN
stringheaderrequired
Value for the X-AUTH-TOKEN header parameter.
Path Parameters
id
stringrequired
ApiToken identifier
Request Body
application/json
required
The updated ApiToken resource
{
"identifier": "default",
"description": "Any description",
"active": true,
"activeFrom": "2024-01-01"
}Response
200
ApiToken resource updated
id
integer
Identifier generated by Output.Rocks.
identifier
stringrequired
Unique identifier
description
stringrequired
ApiToken description
token
string
Token, to be used in API requests to Output.Rocks API
createdAt
string<date-time>
UTC date time of entry creation
updatedAt
string<date-time>
UTC date time of last entry update
active
boolean
Active flag. Default: true
activeFrom
string<date-time>
Date to activate the entry. Default: today