Run an approved script on many profiles; returns the run immediately.

Runs an approved script on many profiles in the background, concurrency at a time, with the profiles' stored variables. Returns the run at once; read its result with GET /v1/runs/:id.

post/v1/scripts/batch

Request

  • Base URL: http://127.0.0.1:10108
  • URL: http://127.0.0.1:10108/v1/scripts/batch
  • Auth: HTTP bearer

Request body

concurrencyinteger
profile_idsstring[] required
script_idstring uuid required
stagger_msinteger
variablesobject

Response

The run as recorded now, still running; poll GET /v1/runs/:id with its id.

completedAtstring date-time nullable required
errorstring nullable required
idstring uuid required
profileIdsstring[] required
profilesDoneinteger required
profilesFailedinteger required
profilesTotalinteger required
scheduleIdstring uuid nullable required
scriptIdstring uuid nullable required
source'schedule' | 'app' | 'agent' | 'null' nullable required
startedAtstring date-time required
status'running' | 'completed' | 'partial' | 'failed' | 'skipped' required

Changes

No recorded changes to this operation across all 1 revision of this API.