Update an existing user’s information.
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
URL Parameters
Request Body
User’s email address (must be unique)
Full name of the user (only if changing)
User password (only if changing)
Role alias or identifier (only if changing)
Optional job title (only if changing)
Optional location (only if changing)
Timezone in TZ format (only if changing)
API management flag (only if changing)
Complete set of custom user attributes (overwrites current values)
Response
On success, returns HTTP 200 status code.
Error Responses
Validation error responseShow Error object properties
Field-specific validation errors
Not Found error responseShow Error object properties
curl --request PATCH \
--url 'https://YOURSITE.konstant.ly/openapi/v1/users/1234567890' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"bio": "An updated information about me: I'\''ve transferred to London!",
"occupation": "Associate",
"location": "London",
"timezone": "Europe/London"
}'
{
"status": 400,
"message": "Validation failed",
"errors": {
"email": ["Invalid email format"]
}
}