Create or save a service token for your self-hosted Databrain instance. Available only on self-hosted deployments.
Authorization header. Obtain one by calling Create Admin JWT first.
application/json when sending a JSON body.uuidv4) and send it here.error.code and error.message and an appropriate HTTP status (400 or 500).
| Status Code | Description |
|---|---|
200 | OK – Service token created or updated; response contains key |
400 | Bad Request – Invalid or missing token (must be a valid UUID) |
500 | Internal Server Error – Server error or self-hosted-only error |
| Code | Message | HTTP Status |
|---|---|---|
INVALID_REQUEST_BODY | Joi validation message (e.g. "token" is required, "token" must be a valid GUID) | 400 |
SELFHOSTED_APP_ERROR | This feature is only available for self-hosted instances | 500 |
ACCOUNT_NOT_FOUND | ACCOUNT_NOT_FOUND | 500 |
INTERNAL_SERVER_ERROR | INTERNAL_SERVER_ERROR | 500 |