Create or replace a user attribute.
POST
/api/admin/attributes
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/attributes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "user_123", "attribute_name": "employee_id", "attribute_value": "E-1001", "expires_at": 1770007200 }'Creates a manual verified attribute for a user, or replaces the existing attribute value for the same user and attribute name.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
user_id
required
string
attribute_name
required
string
attribute_value
required
string
expires_at
integer format: int64
key
additional properties
Example
{ "user_id": "user_123", "attribute_name": "employee_id", "attribute_value": "E-1001", "expires_at": 1770007200}Responses
Section titled “ Responses ”User verified attribute response.
Media type application/json
object
attribute
required
object
id
required
string
tenant_id
required
string
user_id
required
string
attribute_name
required
string
attribute_value
required
string
source_type
required
string
issuer_did
string | null
verification_id
string | null
verified_at
required
integer format: int64
expires_at
required
integer | null format: int64
user_email
string | null format: email
user_name
string | null
key
additional properties
key
additional properties
Example generated
{ "attribute": { "id": "example", "tenant_id": "example", "user_id": "example", "attribute_name": "example", "attribute_value": "example", "source_type": "example", "issuer_did": "example", "verification_id": "example", "verified_at": 1, "expires_at": 1, "user_name": "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"}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"}