7d969765e49a

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-12247165714.0 KB
Directories

Update a directory

Updates a directory.

patch/directories/{directory_id}

Path parameters

directory_idstring required

The ID of the directory to update

Request body

namestring

A human-friendly name for the directory.

enabledboolean

Whether the directory is enabled.

providerstring

The identity provider for this directory.

attribute_mappingobject

Attribute-to-directory-path entries to merge into the directory's attribute mapping. Set a key to null to remove it from the mapping.

group_role_mapping_enabledboolean

Whether group-to-role mapping is enabled for this directory.

Response

A directory

object'directory' required

String representing the object's type. Always "directory".

idstring required

Unique identifier for the directory.

namestring required

A human-friendly name for the directory.

enterprise_connection_idstring nullable

The ID of the associated enterprise connection.

endpoint_urlstring required

The provisioning endpoint URL for this directory.

providerstring required

The identity provider for this directory.

enabledboolean required

Whether the directory is enabled.

group_role_mapping_enabledboolean required

Whether group-to-role mapping is enabled for this directory.

attribute_mappingobject required

Mapping of user attributes to the directory attribute paths they are extracted from.

api_keystring nullable

The API key for authenticating provisioning requests. Only returned when the directory is created or the key is rotated.

created_atinteger required

Unix timestamp when the directory was created.

updated_atinteger required

Unix timestamp when the directory was last updated.