Skip to main content
PUT
/
org
/
tokens
Update Tokens
curl --request PUT \
  --url https://api.example.com/org/tokens \
  --header 'Content-Type: application/json' \
  --header 'X-Org-Id: <api-key>' \
  --header 'X-Session-Id: <api-key>' \
  --header 'X-User-Id: <api-key>' \
  --data '
{
  "tokens": {
    "product_categories": [
      "electronics",
      "clothing",
      "books"
    ],
    "user_types": [
      "premium",
      "standard",
      "trial"
    ]
  }
}
'
{
  "success": true,
  "org_id": "<string>",
  "updated_by": "<string>",
  "message": "<string>"
}

Authorizations

X-User-Id
string
header
required

User identifier

X-Session-Id
string
header
required

JWT session token

X-Org-Id
string
header
required

Organization identifier

Body

application/json

Request to update organization tokens.

tokens
Tokens · object
required

Mapping of token categories to lists of tokens

Example:
{
"product_categories": ["electronics", "clothing", "books"],
"user_types": ["premium", "standard", "trial"]
}

Response

Successful Response

Update tokens response.

success
boolean
required

Whether the operation was successful

org_id
string
required

Organization ID

updated_by
string
required

User who updated the tokens

message
string | null

Response message