Skip to main content
PATCH
/
v0
/
settings
/
user
Update a user
curl --request PATCH \
  --url https://{hostname}.gable.ai/v0/settings/user \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "email": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "githubHandle": "<string>",
  "role": "ADMIN"
}
'
{
  "email": "<string>",
  "role": "ADMIN",
  "firstName": "<string>",
  "lastName": "<string>",
  "githubHandle": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

User

email
string
required

The email address of the user, which is the primary ID in Gable

firstName
string

The first name of the user

lastName
string

The last name of the user

githubHandle
string

The GitHub handle of the user

role
enum<string>

The role of the user

Available options:
ADMIN,
EDITOR,
VIEWER

Response

User was updated successfully

email
string
required

The email address of the user, which is the primary ID in Gable

role
enum<string>
required

The role of the user

Available options:
ADMIN,
EDITOR,
VIEWER
firstName
string

The first name of the user

lastName
string

The last name of the user

githubHandle
string

The GitHub handle of the user