curl --request POST \
--url https://api.cekura.ai/schedules/v1/cron-jobs-external/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"scenarios": [
123
],
"tags": [
"<string>"
],
"agent": 123,
"crontab_expression": "<string>",
"timezone": "Africa/Abidjan"
}'
{
"id": 123,
"agent": 123,
"name": "<string>",
"crontab_expression": "<string>",
"timezone": "Africa/Abidjan",
"scenario_ids": [
123
],
"scenarios_data": [
{
"id": 123,
"agent": 123,
"name": "<string>",
"personality": 123,
"personality_name": "<string>"
}
],
"tags": [
"<string>"
],
"frequency": 50,
"notify_on": "never",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Create a new scheduled job
curl --request POST \
--url https://api.cekura.ai/schedules/v1/cron-jobs-external/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"scenarios": [
123
],
"tags": [
"<string>"
],
"agent": 123,
"crontab_expression": "<string>",
"timezone": "Africa/Abidjan"
}'
{
"id": 123,
"agent": 123,
"name": "<string>",
"crontab_expression": "<string>",
"timezone": "Africa/Abidjan",
"scenario_ids": [
123
],
"scenarios_data": [
{
"id": 123,
"agent": 123,
"name": "<string>",
"personality": 123,
"personality_name": "<string>"
}
],
"tags": [
"<string>"
],
"frequency": 50,
"notify_on": "never",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
API Key Authentication. It should be included in the header of each request.
The response is of type object
.