Skip to main content
PATCH
/
me
/
profile
Update user's profile
curl --request PATCH \
  --url https://console.gmicloud.ai/api/v1/me/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "john",
  "lastName": "doe"
}
'
{
  "group": "user",
  "code": 3,
  "message": "Either firstName or lastName must be provided in the request body."
}

Authorizations

Authorization
string
header
required

An access token used to authenticate a user and grant access to restricted APIs. It is issued by session APIs. For status codes related to this header, refer to the Common Headers Documentation.

Body

application/json

The profile update request body. Either firstName or lastName should be provided.

firstName
string

The user's first name.

Example:

"john"

lastName
string

The user's last name.

Example:

"doe"

Response

Successfully updated the user's profile.