Update my profile

View as Markdown
**What:** Update the signed-in user's own editable profile fields. Whitelist only; at least one field must be present. **Auth:** Bearer token required. **Body (JSON, all optional but at least one required):** | Field | Type | Required | Description | Example | |---|---|---|---|---| | bio | string | no | Trimmed, max 200 characters. | `I rate everything against Fight Club.` | | name | string | no | Display name, trimmed. | `Movie Fan` | | avatarUrl | string | no | Empty string (clears), an `data:image/...;base64,` URL, or an `http(s)://` URL. Max ~1.5MB. | `https://i.imgur.com/abc.png` | | countryCode | string | no | ISO 3166-1 alpha-2, trimmed. | `US` | **Returns:** `data = { user }` (updated safe user). `400` if the body has no recognised field.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
biostringRequired
namestringRequired
countryCodestringRequired

Response

OK
okboolean
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error