コンテンツにスキップ

Set admin user attribute value

PUT
/api/admin/admins/{userId}/attributes/{attributeId}
Code sample: Shell / cURL
curl --request PUT \
--url https://auth.example.com/api/admin/admins/example/attributes/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "value": "security", "value_index": 0, "expires_at": null }'

Creates or replaces an ABAC attribute value for an admin user. The value is stored as a string by the implementation.

userId
required
string

Admin user ID.

attributeId
required
string

Admin attribute definition ID.

Media type application/json
object
value
required
One of:
string
value_index
integer
expires_at
integer
key
additional properties
Example
{
"value": "security",
"value_index": 0,
"expires_at": null
}

Admin attribute value.

Media type application/json
object
id
string
tenant_id
string
admin_user_id
string
admin_attribute_id
string
value
string
value_index
integer
source
string
expires_at
One of:
integer
assigned_by
One of:
string
created_at
integer
updated_at
integer
key
additional properties
Example
{
"id": "attr_value_123",
"tenant_id": "tenant_123",
"admin_user_id": "admin_123",
"admin_attribute_id": "attr_department",
"value": "security",
"value_index": 0,
"source": "manual",
"expires_at": null,
"assigned_by": "admin_owner",
"created_at": 1770000000000,
"updated_at": 1770000000000
}

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"
}