Skip to main content
PATCH
/
api
/
settings
/
profile
Update profile fields.
curl --request PATCH \
  --url https://openagents.com/api/settings/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Christopher David"
}
'
{
  "data": {
    "avatar": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "email": "<string>",
    "id": 123,
    "name": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Update profile fields

name
string
required
Example:

"Christopher David"

Response

Authenticated user profile

data
object