Update a Directory Sync

PUT {{cryptr_service_url}}/api/v2/org/:org_domain/directory-sync?provider=ping_one

Update an existing Directory Sync in an organization. The only update allowed is to change the provider. For example, if your previous provider was okta and you are now using an azure_ad solution.

Note: When updating your Directory Sync, a new bearer token will be assigned, rendering the previous token unusable. This is for security reasons. If you need to update your bearer token because you lost it, please use the reset endpoint.

Request Params

KeyDatatypeRequiredDescription
providerstring(Required) The provider name, e.g., okta, azure_ad, ping_one...

RESPONSES

status: OK

{"__domain__":"barker-inc","__environment__":"sandbox","__type__":"DirectorySync","auth_secret_token":{"hint":"You must save this value. If you lose it you will have to create a new one using the reset endpoint.","provider_key":"OAuth Access Token","value":"barker-inc.sandbox.32dad740-142e-4af3-ac69-de5f36915d80.S_xJw87mkJczGPS0IhRNIeBcWGV01EGJUDhsFyZ6fwlPe-9S_C4K0mAv8H_FrWHXayhirNEQKZ10zwOH1_iOdIwPxenChp6tKHB-FEJ5pwnz1gWJ1ipDXxy_SP24f3EY"},"id":"32dad740-142e-4af3-ac69-de5f36915d80","inserted_at":"2023-06-15T09:23:55","provider":"ping_one","updated_at":"2023-06-15T12:08:19"}