Deployment Tokens

Update a deployment token

patch/projects/{project_id}/deployment-tokens/{token_id}

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/projects/{project_id}/deployment-tokens/{token_id}
  • Auth: HTTP bearer

Path parameters

project_idinteger required

Project ID

token_idinteger required

Deployment token ID

Request body

expires_atstring date-time nullable
is_activeboolean nullable
namestring nullable
permissionsstring[] nullable

Example request

{
  "expires_at": "2024-12-31T23:59:59Z",
  "permissions": [
    "visitors:enrich",
    "emails:send"
  ]
}

Response

Deployment token updated successfully

created_atstring date-time required
created_byinteger nullable
deployment_idinteger nullable
environment_idinteger nullable
expires_atstring date-time nullable
idinteger required
is_activeboolean required
last_used_atstring date-time nullable
namestring required
permissionsstring[] nullable
project_idinteger required
token_prefixstring required

Example response

{
  "created_at": "2024-01-01T00:00:00Z",
  "expires_at": "2024-12-31T23:59:59Z",
  "last_used_at": "2024-01-01T00:00:00Z"
}

Changes

No recorded changes to this operation across all 50 revisions of this API.