Skip to content
POST /sync-job-cron-trigger/{id}/schedule

Schedules the trigger's next run from its cron_expression again. Use it when a trigger has stopped firing.

Path Parameters

idstring
required·

The ID of the sync job cron trigger.

Example: 1f276317-1c44-4ae8-b2e2-f7b8bc0f6aa5

Response Body

successboolean
Example: true

Errors

StatusDescription
400The trigger's cron_expression can't be scheduled.
404Sync job cron trigger not found
409The trigger is inactive. Set is_active to true with a PATCH to schedule it again.
curl -X POST 'https://api.truto.one/sync-job-cron-trigger/{id}/schedule' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/sync-job-cron-trigger/{id}/schedule', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/sync-job-cron-trigger/{id}/schedule"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.post(url, headers=headers, params=params)
print(response.json())