Replace the tenant's test users.
curl --request PUT \ --url https://auth.example.com/api/admin/identity-mapping/test-users \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "test_users": [ { "user_id": "example", "label": "example", "attributes": { "additionalProperty": { "additionalProperty": "example" } } } ] }'Replaces the whole list in one batch (at most 10 test users, 50 attributes each). A test user kept from before is named by the user_id the endpoint gave; one without is new and gets an ID. An attribute key must be a canonical field of the tenant’s or the platform’s field catalog, or one of the tenant’s custom fields (400 with unknown_attributes otherwise); sub is never one. A value is a string (at most 256 characters), a number, a boolean, null, a list of those (at most 20), or one object of strings (an address). The audit record names the counts, never a value. An Agent is refused.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
object
A test user kept from before; left out for a new one.
Example generated
{ "test_users": [ { "user_id": "example", "label": "example", "attributes": { "additionalProperty": { "additionalProperty": "example" } } } ]}Responses
Section titled “ Responses ”The tenant’s test users.
object
object
Milliseconds since the epoch.
object
Example generated
{ "test_users": [ { "user_id": "example", "label": "example", "attributes": { "additionalProperty": { "additionalProperty": "example" } }, "updated_at": 1 } ], "limits": { "max_users": 1, "max_attributes": 1 }}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}