Update a user by id
PATCH/users/:id
Update a user by id
Request
Path Parameters
id uuidrequired
ID of the object to retrieve, update, or delete
- application/json
Body
required
user object
id uuid
ID of the object to retrieve or update
name string
The name
email email
The email
type string
Possible values: [NeprofileUser
, NeaccessUser
]
Default value: NeprofileUser
Type of user
profile_id uuid
ID of the profile
title string
The title
status string
Possible values: [Active
, Disabled
]
Status of the user
login string
The login
group_strings string
The group strings
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
user object
id uuid
uid string
Possible values: >= 32 characters
and <= 32 characters
name string
email email
type string
Possible values: [NeprofileUser
, NeaccessUser
]
Default value: NeprofileUser
title string
status string
Possible values: [Active
, Disabled
]
login string
last_login date-time
cookies_accepted_at date-time
preferred_language string
{
"user": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"uid": "string",
"name": "string",
"email": "[email protected]",
"type": "NeprofileUser",
"title": "string",
"status": "Active",
"login": "string",
"last_login": "2024-05-02T16:11:17.895Z",
"cookies_accepted_at": "2024-05-02T16:11:17.895Z",
"preferred_language": "string"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- InvalidJson
- ValidationErrors
oneOf
error
error
errors
{}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...