Apply HR changes; first run requires the current preview
POST
/v1/admin/hr/run
const url = 'https://api.academy.example.com/v1/admin/hr/run';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"previewRunId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
previewRunId
string format: uuid
Example generated
{ "previewRunId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Success
default
Section titled “default”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"}