Update user role
Updates a user's role in the organization or profile. Requires admin role. You cannot change your own role or demote the last admin.
userId*stringUser ID from route parameter
uuidIdempotency-Key?stringUnique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.
^[a-zA-Z0-9_-]+$length <= 255x-profile-id?stringProfile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.
uuidapplication/json- body
Request to update a user's role
sandbox?booleanSandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution
role?stringUser role: admin, billing, or developer (required)
User role updated successfully
application/json- response
Standard API response envelope for all v3 endpoints
success?booleanIndicates whether the request was successful
data?|nullThe response data (null if error)
error?|nullError details (null if successful)
meta?Metadata about the request and response
curl -X PATCH 'https://api.sent.dm/v3/users/aa0e8400-e29b-41d4-a716-446655440005' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "role": "billing", "sandbox": false}'{ "success": true, "data": { "id": "aa0e8400-e29b-41d4-a716-446655440005", "customer_id": "00000000-0000-0000-0000-000000000000", "email": "user@example.com", "name": "User Name", "role": "billing", "status": "active", "invited_at": "2026-10-12T15:32:26.4938866+00:00", "last_login_at": "2026-11-12T10:32:26.4938876+00:00", "created_at": "2026-10-12T15:32:26.4938878+00:00", "updated_at": "2026-11-12T15:32:26.4938879+00:00" }, "error": null, "meta": { "request_id": "req_7X9zKp2jDw", "timestamp": "2026-11-12T15:32:26.4938882+00:00", "version": "v3" }}Invite a user POST
Sends an invitation to a user to join the organization or profile with a specific role. Requires admin role. The user will receive an invitation email with a token to accept. Invitation tokens expire after 7 days.
Remove user DELETE
Removes a user's access to an organization or profile. Requires admin role. You cannot remove yourself or remove the last admin.