Skip to main content
PUT
/
api
/
profile
Update user profile
curl --request PUT \
  --url https://api.example.com/api/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "John",
  "lastName": "Doe"
}
'
{
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "[email protected]",
    "type": "invited",
    "status": "active",
    "organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "lastProjectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "owner": true,
    "isService": true
  }
}

Authorizations

Authorization
string
header
required

Personal access token is obtained through your profile

Body

application/json
firstName
string
required

First name of the user

Maximum string length: 100
Example:

"John"

lastName
string
required

Last name of the user

Maximum string length: 100
Example:

"Doe"

Response

200 - application/json

Successfully updated user profile

Successfully updated user profile

user
object
required

Updated user profile information