Update user
PATCH /api/v1/users/{id}
PATCH
/api/v1/users/{id}
Updates a user.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer
User ID
Request Body
Section titled “Request Body ”object
role_id
required
integer
Responses
Section titled “ Responses ”Successful
object
id
required
integer
Example
12345 first_name
required
string
Example
Joe last_name
required
string
Example
Cottam email
required
created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z updated_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z profile_image_url
required
string format: url
Example
https://example.com/profile.jpg wants_marketing_emails
required
boolean
two_factor_enabled
required
boolean
disabled_email_notifications
required
Array<string>
organization_membership
required
object
role_id
required
integer
Example
12345 invitation_sent_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z invitation_accepted_at
required
string format: date-time
Example
2023-08-23T10:30:00.000ZUnauthorized
object
message
required
string
Example
Record not foundForbidden
object
message
required
string
Example
Record not foundNot Found
object
message
required
string
Example
Record not foundUnprocessable Entity
object
message
required
string
Example
Failed to save errors
required
object
key
additional properties
Array<string>
Example
{ "errors": { "username": [ "Username is required.", "Username must be unique." ], "email": [ "Invalid email format." ] }}