Approve User
const url = 'https://example.com/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/approve/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"role":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/approve/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role": "example" }'Approve a pending user with the specified role (admin only).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Bodyrequired
Section titled “ Request Bodyrequired ”object
Role to assign to the approved user: ‘admin’, ‘editor’, or ‘viewer’.
Example generated
{ "role": "example"}Responses
Section titled “ Responses ”Successful Response
object
Account status: active, pending, suspended, or deactivated.
Assigned role names, e.g. [‘admin’, ‘editor’]
Whether an administrator can set a local password for this account. True for local accounts even when an identity provider is also linked.
Per-user quota usage: current consumption vs configured caps.
object
Example
{ "status": "active"}Bad request — invalid query parameters or payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks access to this resource
Not found
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request