/directoriesCreate a directory
Creates a directory for provisioning users from an identity provider and associates it with an enterprise connection. Supply enterprise_connection_id and provider; optionally include a name and group-to-role mappings to create with the directory. The response includes the directory configuration and its API key.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Directory configuration, with optional group-to-role mappings to create alongside the directory.
A 400 is returned when the request is unsuccessful. A 401 is returned when authentication is invalid. A 403 is returned when authorization is invalid. A 422 is returned when request parameters are invalid. enterprise_connection_id and provider are required. Each group-role mapping must include role_id and exactly one of directory_group_id or scim_group_id; if you send both legacy and current field names, their values must match.