# Update Profile

> Update your profile name, work role and work URL using your API key or OAuth token

- **URL**: https://orshot.com/docs/api-reference/profile-update

---

Update your user profile. Only the three fields below can be changed through the API. `POST` is accepted as an alias for `PATCH`.

Your email address cannot be changed through the API since it is tied to your billing and login. Write to [hi@orshot.com](mailto:hi@orshot.com) to change it. Requests that include `email` or any billing field return `400` with code `forbidden_fields`.

## Endpoint

```markdown tab="Endpoint"
https://api.orshot.com/v1/me
```

## Request Body

| Parameter   | Type   | Required | Description                                                                  |
| ----------- | ------ | -------- | ---------------------------------------------------------------------------- |
| `full_name` | String | No       | Your full name, up to 300 characters                                         |
| `work_role` | String | No       | What you do, e.g. "Founder", "Marketing lead", up to 300 characters          |
| `work_url`  | String | No       | Your company or personal site as an http(s) URL. Empty string clears it      |

Omit a field to leave it unchanged. At least one field is required.

## Request

**Request**
```js
await fetch("https://api.orshot.com/v1/me", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer <ORSHOT_API_KEY>",
  },
  body: JSON.stringify({
    full_name: "John Doe",
    work_role: "Founder",
    work_url: "https://acme.com",
  }),
});
```

**Response**
```json
{
  "data": {
    "updated": ["full_name", "work_role", "work_url"]
  }
}
```

## Errors

| Status | Code               | Description                                                        |
| ------ | ------------------ | ------------------------------------------------------------------ |
| `400`  | `forbidden_fields` | The request included fields that can never be updated via the API  |
| `400`  | `unknown_fields`   | The request included fields outside the list above                 |
| `400`  |                    | `work_url` was not a valid http(s) URL, or a value exceeded limits |