Skip to main content
PATCH
/
api
/
v1
/
missions
/
{missionId}
Update mission
curl --request PATCH \
  --url http://localhost:3000/api/v1/missions/{missionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": "<string>",
  "status": "draft",
  "name": "<string>",
  "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
data
string
Minimum string length: 1
status
enum<string>
Available options:
draft,
scheduled,
recurring,
active,
paused,
completed,
failed,
cancelled
name
string
endDate
string<date-time> | null

Response

200 - application/json

Mission updated

ok
boolean
required
data
unknown