Identities
Create a New Identity
Changed onTo create an identity, send a POST request to /v1/tenants/$TENANT_ID/realms/$REALM_ID/identities. Values in the request body for read-only fields will be ignored. If the request conflicts with an existing resource, you will receive a 409 error.
post/v1/tenants/{tenant_id}/realms/{realm_id}/identities
Request
- Base URLhttps://api-us.beyondidentity.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tenant_idstring required
Example:000176d94fd7b4d1
A unique identifier for a tenant.
realm_idstring required
Example:19a95130480dfa79
A unique identifier for a realm.
Request body
Example request
{
"identity": {
"id": "e372db224c06e850",
"realm_id": "8f5bec58229e6f29",
"tenant_id": "0001f1f460b1ace6",
"display_name": "Test Display",
"create_time": "2022-04-12T05:53:07.119Z",
"update_time": "2022-06-16T14:31:03.770Z",
"status": "active",
"traits": {
"type": "traits_v0",
"username": "test",
"primary_email_address": "test@example.com"
},
"enrollment_status": "ENROLLED"
}
}Response
The response will be a JSON object containing the standard attributes associated with an identity.
Example response
{
"id": "e372db224c06e850",
"realm_id": "8f5bec58229e6f29",
"tenant_id": "0001f1f460b1ace6",
"display_name": "Test Display",
"create_time": "2022-04-12T05:53:07.119Z",
"update_time": "2022-06-16T14:31:03.770Z",
"status": "active",
"traits": {
"type": "traits_v0",
"username": "test",
"primary_email_address": "test@example.com"
},
"enrollment_status": "ENROLLED"
}Changes
- info
added the optional property
to the response with the status
- info