Update a user's role or enabled state
PATCH
/api/v1/admin/users/{id}
Authorizations
session
Browser session cookie.
Type
API Key (cookie: bp_session)
or
apiKey
User API key: Authorization: Bearer bpi_...
Type
HTTP (bearer)
Parameters
Path Parameters
id*
Type
Requiredinteger
Format
"int64"Request Body
application/json
JSON "$schema": "https://bpincentives.com/schemas/Admin-update-userRequest.json", "enabled": true, "role": "string"
{
}
Responses
OK
application/json
JSON "$schema": "https://bpincentives.com/schemas/Admin-update-userResponse.json", "user": { "createdAt": 0, "email": "string", "enabled": true, "hasPasskey": true, "hasPassword": true, "id": 0, "lastLoginAt": 0, "name": "string", "role": "string", "totpEnabled": true, "username": "string" }
{
}