Skip to main content
PATCH
/
api
/
v1
/
schedules
/
{missionId}
Update schedule
curl --request PATCH \
  --url http://localhost:3000/api/v1/schedules/{missionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expression": "<string>",
  "recurring": true,
  "enabled": 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.

Path Parameters

missionId
string
required

Body

application/json
expression
string
Minimum string length: 1
recurring
boolean
enabled
boolean
endDate
string<date-time> | null

Response

Schedule updated

ok
boolean
required
data
unknown