Auditmark

Trigger directory sync

POST
/integrations/directory-sources/{source_id}/sync

Run the directory reconcile inline and return the COMPLETED run, so the UI shows an immediate result. reconcile_directory_source_by_id opens its own sessions and never raises.

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Path Parameters

source_id*Source Id

Response Body

application/json

application/json

curl -X POST "https://api.auditmark.io/v1/integrations/directory-sources/497f6eca-6276-4993-bfeb-53cbbbba6f08/sync"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",  "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",  "directory_source_id": "817b0ecf-7cf1-4c97-924f-474ad38f3ea5",  "started_at": "2019-08-24T14:15:22Z",  "finished_at": "2019-08-24T14:15:22Z",  "created_count": 0,  "updated_count": 0,  "skipped_count": 0,  "errored_count": 0,  "error": null}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}