Turn the mission agent’s schedule off
const url = 'https://beta-api.plune.ai/v1/missions/example/agent/schedule';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"state":"off"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://beta-api.plune.ai/v1/missions/example/agent/schedule \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "state": "off" }'Anyone who may write turns it off — a person or a write token; the journal says who. Turning it on again is a person’s PUT. Ten a minute.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The mission’s id
Request Body required
Section titled “Request Body required ”object
Example
{ "state": "off"}Responses
Section titled “ Responses ”The schedule, off
object
off: turned off by someone who may write; paused: its author left the project; a person setting it again turns it on
The person who set it: its runs act for them
The run its last time queued or resumed
What its last time did: a run queued or resumed, or why none
Example
{ "id": "6c1d8e2a-3b4f-4a7e-8d21-5f9b0c3e7a42", "missionId": "6f1c2b3a-0000-4000-8000-000000002188", "state": "off", "budgetUsd": 2, "everyHours": 24, "nextRunAt": "2026-11-15T06:00:00.000Z", "createdBy": "6f1c2b3a-0000-4000-8000-0000000000a2", "lastFiredAt": "2026-11-14T06:00:00.000Z", "lastRunId": "0b6f3c2e-7d1a-4f0e-9a51-2c8e4b7d9f10", "lastOutcome": "queued", "createdAt": "2026-11-13T09:00:00.000Z", "updatedAt": "2026-11-14T06:00:00.000Z"}Invalid JSON, or a state other than off
object
Example generated
{ "error": "example"}No / invalid token or session
A reader, or a read token
object
Example generated
{ "error": "example"}No such mission in your project, or it has no schedule
object
Example generated
{ "error": "example"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over