Update user
Update user
Path Parameters
Request Body required
The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email.
The email of the user. The email must be unique within the entire Frontier instance.
Example:"john.doe@raystack.org"
Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object.
Example:{"label": {"key1": "value1"}, "description": "User Description"}
The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty.
Example:"John Doe"
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
user object
{
"user": {
"id": "string",
"name": "johndoe",
"title": "John Doe",
"email": "string",
"metadata": {},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z",
"state": "string"
}
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
PUT /v1beta1/users/:id
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/users/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"email": "string",
"metadata": {},
"title": "string"
}'