Skip to content

Remove the avatar

DELETE
/users/{user_id}/avatar.json
curl --request DELETE \
--url https://your-board.mudda.today/users/1/avatar.json \
--header 'Authorization: Bearer <token>'

Removes the user’s avatar; the monogram is shown in its place. Scope: delete.

user_id
required
integer

Example

1

Removed.

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"
}

No such record or route.

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": [
"Not found"
]
},
"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.