---
title: "Patch profile fields with a durable receipt"
method: POST
path: "/v1/users/me/profile/commands"
tags: ["user"]
---

# Patch profile fields with a durable receipt

`POST /v1/users/me/profile/commands`

## Request

- Base URL: `https://app.legend.trade/api/rest`
- URL: `https://app.legend.trade/api/rest/v1/users/me/profile/commands`
- Auth: HTTP bearer

## Request body

- object
  - `operationId` string, uuid, required: Persist this UUID and input before transport. Retry the same pair after an unknown outcome. A new intent needs a new UUID.
  - `expectedUserId` string, uuid, required
  - `patch` object, required
    - `username` string
    - `displayName` string
    - `avatarUrl` string, uri
    - `featureImageUrl` string, uri
    - `bio` string, nullable

## Response `200`

Successful response

- ProfileCommandReceipt: The original profile outcome. Refresh the current profile after recovery. Serialize conflicting patches in the client.
  - `operationId` string, uuid, required
  - `status` 'succeeded' | 'rejected', required
  - `result` ProfileCommandResult, required
    - `viewerId` string, uuid, required
    - `username` string, nullable, required
    - `displayName` string, nullable, required
    - `avatarUrl` string, nullable, required
    - `featureImageUrl` string, nullable, required
    - `bio` string, nullable, required
  - `error` object, nullable, required
    - `code` string, required
    - `message` string, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `500`: Internal server error

## Changes

- **2026-10-25** `8d368659667e`: 5 breaking, 5 info
  - the response property `result/anyOf[#/components/schemas/ProfileCommandResult]/avatarUrl` became nullable for the status `200`
  - the response property `result/anyOf[#/components/schemas/ProfileCommandResult]/bio` became nullable for the status `200`
  - the response property `result/anyOf[#/components/schemas/ProfileCommandResult]/displayName` became nullable for the status `200`
  - the response property `result/anyOf[#/components/schemas/ProfileCommandResult]/featureImageUrl` became nullable for the status `200`
  - …6 more
- **2026-10-24** `47071fafc154`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/legend/apis/legend-api/changes/v1/users/me/profile/commands/post.md)

---

[API](https://skmtc.dev/legend/apis/legend-api.md) - [All operations](https://skmtc.dev/legend/apis/legend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/legend/apis/legend-api/revisions/c3e45061cf81?raw)
