Stampfactory
Dokumentation
Single Sign-on

Verzeichnis-Synchronisation ausführen

Applies the plan of one preview run. The run has to belong to this provider, be younger than 30 minutes and not have been committed before; anything else answers 422.

POST
/sso/sync/{provider}/commit
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

provider*string

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

A commit names the exact preview run it replays. That reference is what makes a plan single-use and what stops a stale picture of the directory from being written.

Response-Body

application/json

application/json

application/json

curl -X POST "https://example.com/sso/sync/string/commit" \  -H "Content-Type: application/json" \  -d '{    "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec"  }'
{  "data": {    "id": "string",    "provider": "string",    "mode": "string",    "status": "string",    "triggered_by": "string",    "triggered_by_user_id": "string",    "source_run_id": "string",    "error": "string",    "stats": {      "created": 0,      "updated": 0,      "deactivated": 0,      "skipped": 0,      "conflicts": 0    },    "started_at": "string",    "finished_at": "string",    "created_at": "string",    "plan": [      {        "action": "string",        "subject": "string",        "code": "string",        "email": "string",        "name": "string",        "surname": "string",        "display_name": "string",        "user_id": "string",        "employee_id": "string",        "conflict": "string",        "changes": {          "property1": {            "from": "string",            "to": "string"          },          "property2": {            "from": "string",            "to": "string"          }        },        "message": "string",        "result": "string"      }    ]  }}