Update a user attribute.
PUT
/api/admin/attributes/{id}
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/attributes/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "attribute_value": "E-1002", "expires_at": null }'Updates a user attribute value and/or expiration. When no mutable field is supplied the handler returns success without modifying the row.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
User attribute id.
Request Body required
Section titled “Request Body required ” Media type application/json
object
attribute_value
string
expires_at
integer | null format: int64
key
additional properties
Example
{ "attribute_value": "E-1002", "expires_at": null}Responses
Section titled “ Responses ”Successful admin action response.
Media type application/json
object
success
required
boolean
message
string
id
string
deleted_user_id
string
deleted_count
integer
key
additional properties
Example
{ "success": true, "message": "Operation completed"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}