Skip to content

Update user

PUT
/users/{email}
curl --request PUT \
--url https://api.muninx.com/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Alice", "last-name": "Doe", "type": "agent", "agent-type": "human", "organization": "acme", "status": "suspended", "auto-assign-tickets": "true" }'

Updates user fields. Only admins can update role, status, organization, auto-assign, or agent type.

email
required
string

User email address. Some endpoints also accept me.

Example
me
Media type application/json
object
name
string
last-name
string
type
string
Allowed values: admin agent customer
organization
string
auto-assign-tickets
string
Allowed values: true false
status
string
Allowed values: active suspended
agent-type
string
Allowed values: human ai-assisted ai-autonomous
Example
{
"name": "Alice",
"last-name": "Doe",
"type": "agent",
"agent-type": "human",
"organization": "acme",
"status": "suspended",
"auto-assign-tickets": "true"
}

OK

Media type application/json
string
Example
User updated

RFC 9457 problem details

Media type application/problem+json

RFC 9457 problem details.

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
key
additional properties
any
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}

RFC 9457 problem details

Media type application/problem+json

RFC 9457 problem details.

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
key
additional properties
any
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}

RFC 9457 problem details

Media type application/problem+json

RFC 9457 problem details.

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
key
additional properties
any
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}

RFC 9457 problem details

Media type application/problem+json

RFC 9457 problem details.

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
key
additional properties
any
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}