Skip to content

Update the user

PATCH
/users/{id}.json
curl --request PATCH \
--url https://your-board.mudda.today/users/1.json \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Ayesha K." }'

Changes the signed-in user’s name and avatar (an Active Storage signed blob id). Always the signed-in user, whatever the :id.

Scope: write.

id
required
integer

Ignored; always the signed-in user.

Example

1
Media typeapplication/json
object
name
string
avatar

An Active Storage signed blob id.

string

Example

{
"name": "Ayesha K."
}

The updated user.

Media typeapplication/json
object
id
required
integer
name
required
string
email_address
required
string format: email
active
required
boolean
created_at
required
string format: date-time
url
required
string format: uri
avatar_url
required
string format: uri

Examples

Exampledefault
{
"id": 1,
"name": "Ayesha Khan",
"email_address": "ayesha@example.com",
"active": true,
"created_at": "2026-01-04T09:12:00Z",
"url": "https://your-board.mudda.today/users/1",
"avatar_url": "https://your-board.mudda.today/users/1/avatar"
}

The body is missing the object a write needs, or isn’t valid JSON.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"card": [
"is missing"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

No credential, or a revoked or expired token.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Unauthorized"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

The user is deactivated, the record isn’t yours to change, or the token lacks the scope.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"This token is not granted the write scope"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

Validation failed, a query parameter isn’t recognised, or a filter value is outside its list.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"due_on": [
"can't be blank in Todo or Doing"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

The token has spent its 600 requests this minute.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Rate limit exceeded: 600 requests a minute per token"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}
Retry-After
integer
Allowed value: 60

Seconds to wait before retrying.