Users

Edit Authenticated User

patch/user

Request

Request body

valuestring required
op'replace' required

Patch operation to perform

path'/username' | '/fullName' | '/timezone' | '/avatarStorageId' json-pointer required

A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

Example request

[
  {
    "value": "Smith",
    "path": "/fullName"
  }
]

Response

User was successfully updated

Example response

{
  "data": {
    "id": 12,
    "username": "john_smith",
    "email": "jsmith@example.com",
    "fullName": "John Smith",
    "createdAt": "2019-07-11T07:40:22+00:00",
    "lastSeen": "2019-10-23T11:44:02+00:00",
    "twoFactor": "enabled",
    "timezone": "Europe/Kyiv"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.