> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.movieknight.site/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.movieknight.site/_mcp/server.

# Update my profile

PATCH {{baseUrl}}/api/users/me
Content-Type: application/json

**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.

Reference: https://apidocs.movieknight.site/movie-knight-api/users/update-my-profile

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/users/me:
    patch:
      operationId: update-my-profile
      summary: Update my profile
      description: >-
        **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.
      tags:
        - subpackage_users
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Users_Update my profile_Response_200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchApiUsersMeRequestBadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchApiUsersMeRequestUnauthorizedError'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                bio:
                  type: string
                name:
                  type: string
                countryCode:
                  type: string
              required:
                - bio
                - name
                - countryCode
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiUsersMePatchResponsesContentApplicationJsonSchemaDataUserAiUsage:
      type: object
      properties:
        used:
          type: integer
        limit:
          type: integer
        remaining:
          type: integer
      required:
        - used
        - limit
        - remaining
      title: ApiUsersMePatchResponsesContentApplicationJsonSchemaDataUserAiUsage
    ApiUsersMePatchResponsesContentApplicationJsonSchemaDataUser:
      type: object
      properties:
        id:
          type: string
        bio:
          type: string
        name:
          type: string
        email:
          type: string
          format: email
        badges:
          type: array
          items:
            description: Any type
        aiUsage:
          $ref: >-
            #/components/schemas/ApiUsersMePatchResponsesContentApplicationJsonSchemaDataUserAiUsage
        username:
          type: string
        avatarUrl:
          description: Any type
        createdAt:
          type: string
          format: date-time
        countryCode:
          type: string
        dateOfBirth:
          type: string
          format: date-time
      required:
        - id
        - bio
        - name
        - email
        - badges
        - aiUsage
        - username
        - createdAt
        - countryCode
        - dateOfBirth
      title: ApiUsersMePatchResponsesContentApplicationJsonSchemaDataUser
    ApiUsersMePatchResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        user:
          $ref: >-
            #/components/schemas/ApiUsersMePatchResponsesContentApplicationJsonSchemaDataUser
      required:
        - user
      title: ApiUsersMePatchResponsesContentApplicationJsonSchemaData
    Users_Update my profile_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          $ref: >-
            #/components/schemas/ApiUsersMePatchResponsesContentApplicationJsonSchemaData
      required:
        - ok
        - data
      title: Users_Update my profile_Response_200
    PatchApiUsersMeRequestBadRequestError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: PatchApiUsersMeRequestBadRequestError
    PatchApiUsersMeRequestUnauthorizedError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: PatchApiUsersMeRequestUnauthorizedError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{
  "bio": "I rate everything against Fight Club.",
  "name": "Movie Fan",
  "countryCode": "US"
}
```

**Response**

```json
{
  "ok": true,
  "data": {
    "user": {
      "id": "66a1f2c4e5b3a1234567890a",
      "bio": "I rate everything against Fight Club.",
      "name": "Movie Fan",
      "email": "moviefan@example.com",
      "badges": [],
      "aiUsage": {
        "used": 0,
        "limit": 5,
        "remaining": 5
      },
      "username": "moviefan",
      "createdAt": "2026-06-25T10:30:00.000Z",
      "countryCode": "US",
      "dateOfBirth": "1999-05-20T00:00:00.000Z"
    }
  }
}
```

**SDK Code**

```python Users_Update my profile_example
import requests

url = "https://{{baseurl}}/api/users/me"

payload = {
    "bio": "I rate everything against Fight Club.",
    "name": "Movie Fan",
    "countryCode": "US"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Users_Update my profile_example
const url = 'https://{{baseurl}}/api/users/me';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"bio":"I rate everything against Fight Club.","name":"Movie Fan","countryCode":"US"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Users_Update my profile_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://{{baseurl}}/api/users/me"

	payload := strings.NewReader("{\n  \"bio\": \"I rate everything against Fight Club.\",\n  \"name\": \"Movie Fan\",\n  \"countryCode\": \"US\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Users_Update my profile_example
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/users/me")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"bio\": \"I rate everything against Fight Club.\",\n  \"name\": \"Movie Fan\",\n  \"countryCode\": \"US\"\n}"

response = http.request(request)
puts response.read_body
```

```java Users_Update my profile_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://{{baseurl}}/api/users/me")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"bio\": \"I rate everything against Fight Club.\",\n  \"name\": \"Movie Fan\",\n  \"countryCode\": \"US\"\n}")
  .asString();
```

```php Users_Update my profile_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://{{baseurl}}/api/users/me', [
  'body' => '{
  "bio": "I rate everything against Fight Club.",
  "name": "Movie Fan",
  "countryCode": "US"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Users_Update my profile_example
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/users/me");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"bio\": \"I rate everything against Fight Club.\",\n  \"name\": \"Movie Fan\",\n  \"countryCode\": \"US\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Users_Update my profile_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "bio": "I rate everything against Fight Club.",
  "name": "Movie Fan",
  "countryCode": "US"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/users/me")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```