Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
Schedules a Playbook Run.
curl --request POST \
--url https://api-trial.cognigy.ai/new/v2.0/playbooks/{playbookId}/schedule \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entrypoint": "61f25579055c2f43c249a181",
"flowId": "010d1970-89b9-4012-892b-53c78ef6c117",
"localeId": "8b3b45e2-48f9-446d-a4c5-35d8284a01b2"
}
'{
"_id": "<string>",
"status": "queued",
"type": "runPlaybook",
"parameters": {},
"createdAt": 123,
"lastChangedAt": 123,
"progress": 50,
"job": {
"name": "<string>",
"namespace": "<string>",
"timeoutInMs": 123
}
}Documentation Index
Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
Use this file to discover all available pages before exploring further.
Supply the API Key in the HTTP-Header
The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.
application/json, application/hal+json, application/xml, text/xml, text/csv The Id of the Playbook
24^[a-z0-9]{24}$Successfully scheduled the Playbook Run. Returns the created task (run) metadata.
Created task metadata (same shape as ITaskReturnValue).
24^[a-z0-9]{24}$Task status (e.g. queued, active, done)
"queued"
Task type (e.g. runPlaybook)
"runPlaybook"
Task payload (playbookId, projectId, entrypoint, flowId, localeId, etc.)
Unix timestamp in seconds when the task was created
Unix timestamp in seconds when the task was last updated
Task progress (0-100)
0 <= x <= 100Present only when the task runs as a Kubernetes job
Show child attributes
curl --request POST \
--url https://api-trial.cognigy.ai/new/v2.0/playbooks/{playbookId}/schedule \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entrypoint": "61f25579055c2f43c249a181",
"flowId": "010d1970-89b9-4012-892b-53c78ef6c117",
"localeId": "8b3b45e2-48f9-446d-a4c5-35d8284a01b2"
}
'{
"_id": "<string>",
"status": "queued",
"type": "runPlaybook",
"parameters": {},
"createdAt": 123,
"lastChangedAt": 123,
"progress": 50,
"job": {
"name": "<string>",
"namespace": "<string>",
"timeoutInMs": 123
}
}