v3

latestOpenAPI 3.0.3MIT2026-07-313881,2455.6 MB
Database tokens

Updates the existing database token if it is owned by the authorized user and ifthe user has access to the related workspace.

patch/api/database/tokens/{token_id}/

Path parameters

token_idinteger required

Updates the database token related to the provided value.

Request body

namestring

The human readable name of the database token for the user.

rotate_keyboolean

Indicates if a new key must be generated.

Example request

{
  "permissions": {
    "create": true,
    "read": true,
    "update": true,
    "delete": true
  }
}

Response

idinteger required
namestring required

The human readable name of the database token for the user.

workspaceinteger required

Only the tables of the workspace can be accessed.

keystring required

The unique token key that can be used to authorize for the table row endpoints.

Example response

{
  "permissions": {
    "create": true,
    "read": true,
    "update": true,
    "delete": true
  }
}