Create schedule
POST
/api/v1/schedules
const url = 'https://dashboard.justcrawl.io/api/v1/schedules';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","workflowId":"example","frequency":"every_5_minutes","cronExpr":"example","timezone":"example","tagFilters":["example"],"isEnabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.justcrawl.io/api/v1/schedules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "workflowId": "example", "frequency": "every_5_minutes", "cronExpr": "example", "timezone": "example", "tagFilters": [ "example" ], "isEnabled": true }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
workflowId
string
frequency
required
string
cronExpr
string
timezone
string
tagFilters
Array<string>
isEnabled
boolean
Responses
Section titled “ Responses ”Schedule created
Media type application/json
object
id
string format: uuid
name
string
workflowId
string format: uuid
tagFilters
Array<string>
frequency
string
cronExpr
string
timezone
string
isEnabled
boolean
nextRunAt
string format: date-time
lastRunAt
string format: date-time
createdAt
string format: date-time
Example
{ "frequency": "hourly"}