: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/cancel" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "cancelled"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Endpoints
Cancel a pending task
Only pending tasks can be cancelled.
POST
/
v1
/
delta-neutral
/
tasks
/
{taskId}
/
cancel
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/cancel" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "cancelled"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Send
{}. Cancellation is available only before the worker claims a pending task. For a running task, use close.
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/cancel" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'
Authorizations
API key created in this environment: mobius_.. Keep it in a local environment variable; never commit it.
Headers
Persist one ID per intended mutation before sending. Reuse it with the same request for retries; different content returns 409.
Required string length:
1 - 128Pattern:
^[!-~]+$Path Parameters
Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Body
application/json
The body is of type object.

