Update the account display name
PATCH
/auth/me
const url = 'https://localhost:3000/api/v1/auth/me';const options = { method: 'PATCH', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"display_name":"Alice"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://localhost:3000/api/v1/auth/me \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "display_name": "Alice" }'Sets or clears the optional display name shown to the members of the tenants the account shares and to the people it invites. display_name: an empty string clears it; absent or null is refused. A name is trimmed, at most 20 characters, letters, digits, space, - _ and . only. Not unique. JWT only.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Display name
Media typeapplication/json
object
display_name
string
Example
AliceResponses
Section titled “Responses”Updated account
Media typeapplication/json
object
created_at
required
string format: date-time
display_name
DisplayName is the optional name shown to tenant members; absent when unset.
string
id
required
string format: uuid
limits
required
object
is_unlimited
required
boolean
max_triggers
required
integer
retention
required
string
rpm
required
integer
plan
required
string
Example
{ "created_at": "2024-01-15T10:30:00Z", "display_name": "Alice", "id": "550e8400-e29b-41d4-a716-446655440000", "limits": { "is_unlimited": false, "max_triggers": 5, "retention": "7 days", "rpm": 600 }, "plan": "free"}Invalid request or display name
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Account not found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}