Update an API token

Path Parameters
  • userId
    Type: integer
    required

    ID of user

  • tokenId
    Type: integer
    required

    ID of token

Body·
required
application/json
  • allowedIps
    Type: array string[]

    Whitelist of IPv4/IPv6 addresses or CIDR ranges; empty means unrestricted

  • description
    Type: string

    Human-readable description of the token's purpose

  • mcp
    Type: boolean

    When true, this token is an MCP (Model Context Protocol) token for AI integrations

  • permissions
    Type: array object[] ·

    Per-module CRUD permissions granted to this token

  • priority
    Type: integer

    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
    }
  ]
}