Update an API token
Path Parameters
- Type: integeruser
Id requiredID of user
- Type: integertoken
Id requiredID of token
Body·
required
application/json
- Type: array string[]allowed
Ips Whitelist of IPv4/IPv6 addresses or CIDR ranges; empty means unrestricted
- Type: stringdescription
Human-readable description of the token's purpose
- Type: booleanmcp
When true, this token is an MCP (Model Context Protocol) token for AI integrations
- Type: array object[] ·permissions
Per-module CRUD permissions granted to this token
- Type: integerpriority
Default conflict-resolution priority across tokens; lower value takes precedence
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for put/auth/{userId}/token/{tokenId}
curl https://test.boost.space/api/auth/1/token/1 \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"userId": 42,
"token": "string",
"description": "string",
"priority": 1,
"boostId": "string",
"permissions": [
{
"id": 42,
"created": "string",
"createdUserId": 42,
"tokenId": 42,
"module": "activities",
"create": true,
"read": true,
"update": true,
"delete": true,
"boostId": "string"
}
],
"allowedIps": [
"string"
],
"mcp": true
}'
{
"id": 1,
"remotes": [
{
"id": "1",
"application": "string",
"delete": true
}
]
}