Skip to main content
POST
/
api
/
v1
/
schedules
Create schedule
curl --request POST \
  --url http://localhost:3000/api/v1/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "missionId": "<string>",
  "expression": "<string>",
  "recurring": true,
  "endDate": "2023-11-07T05:31:56Z"
}
'
{
  "ok": true,
  "data": null
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Body

application/json
missionId
string
required
Minimum string length: 1
expression
string
required
Minimum string length: 1
recurring
boolean
endDate
string<date-time>

Response

Schedule created

ok
boolean
required
data
unknown