Skip to content

Apply HR changes; first run requires the current preview

POST
/v1/admin/hr/run
curl --request POST \
--url https://api.academy.example.com/v1/admin/hr/run \
--header 'Content-Type: application/json' \
--data '{ "previewRunId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Apply the HR system’s changes now: people are created, changed, deactivated or reactivated. The first run needs previewRunId from preview_hr_sync and starts the daily runs. Show the preview and ask first.

Media typeapplication/json
object
previewRunId
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/

Example generated

{
"previewRunId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Success

Error; error and message identify the reason

Media typeapplication/json
object
error
required

Stable code, e.g. insufficient_scope, not_found, validation_failed

string
message
string

Example generated

{
"error": "example",
"message": "example"
}