PUT
/
api
/
v1
/
workflow
/
public
/
scheduled
/
:schedule_id
/
pause
curl --request PUT \
  --url https://api.gocobalt.io/api/v1/workflow/public/scheduled/:schedule_id/pause \
  --header 'x-api-key: <api-key>'
{
    "_id": "67becf62f29636d291eaadc0",
    "event_id": "67becf62f29636d291eaadbf",
    "workflow": "663c73e4608a784bacac384a",
    "linked_account_id": "tim-cook",
    "environment": "test",
    "org_id": "65c9ef72f4b95fce32e8ccf8",
    "cron_patten": "*/6 * * * *",
    "inactive": true,
    "registered_by_api": true,
    "options": {
        "currentDate": "2025-02-26",
        "endDate": "2025-02-28",
        "startDate": "2025-02-27",
        "tz": "Asia/Kolkata"
    },
    "trigger_type": "cron",
    "trigger_interval": [],
    "schedule_added_at": "2025-02-26T08:22:58.080Z",
    "updatedAt": "2025-02-26T08:22:58.080Z"
}

This API pauses a cron schedule by its ID.

Request description

Path Parameters

schedule_id
string
required

The id of the schedule that you want to pause.

Response description

_id
string

ID of the registered cron

event_id
string

Event ID

workflow
string

ID or Alias of the workflow

linked_account_id
string

Linked Account ID for which cron is registered

environment
string

Environment in which cron registered

org_id
string

Organization id

cron_pattern
string

Cron Pattern used for schedule register.

inactive
boolean

The schedule is inactive or not.

registered_by_api
boolean

Whether the cron is registered using API.

options
object

Cron body sent in the request

trigger_interval
array

Array of the interval dates for which the schedule is registered. It is empty if cron trigger_type is used.

schedule_added_at
string

Timestamp when schedule was added

updatedAt
string

Timestamp of schedule updation.

{
    "_id": "67becf62f29636d291eaadc0",
    "event_id": "67becf62f29636d291eaadbf",
    "workflow": "663c73e4608a784bacac384a",
    "linked_account_id": "tim-cook",
    "environment": "test",
    "org_id": "65c9ef72f4b95fce32e8ccf8",
    "cron_patten": "*/6 * * * *",
    "inactive": true,
    "registered_by_api": true,
    "options": {
        "currentDate": "2025-02-26",
        "endDate": "2025-02-28",
        "startDate": "2025-02-27",
        "tz": "Asia/Kolkata"
    },
    "trigger_type": "cron",
    "trigger_interval": [],
    "schedule_added_at": "2025-02-26T08:22:58.080Z",
    "updatedAt": "2025-02-26T08:22:58.080Z"
}