ApplesauceOS
Read Markdown ↗Download .md

POST /scripts/stop

Request cancellation of one saved-script run.

This is a device HTTP route. Set DEVICE_URL to your reachable device URL; connection and examples explain how. Do not append this path to the public MCP URL.

Parameters

ParameterTypeMeaning
idJSON stringUUID returned by scripts/run.

Response

JSON {stopRequested:boolean}. false means no matching stoppable run was found.

Example

sh
curl --fail-with-body "$DEVICE_URL/scripts/stop" \
  -H 'Content-Type: application/json' \
  -d '{"id":"RUN_UUID"}'

Notes

Cancellation is cooperative. Poll its journal; this response does not prove the run has already ended.

Check the HTTP status and any JSON error. HTTP workflows and error handling explain shared limits. All endpoints.