Cancel workflow executionAsk AIpost https://example.com/workflow/{workflowId}/cancelCancels a workflow, stopping its execution permanentlyPath ParamsworkflowIduuidrequiredUnique identifier of the workflow to cancelBody ParamsCancel workflow requestreasonstringlength ≤ 500optional reason for the cancelforcebooleanDefaults to falseForce immediate execution, clearing pending commands and interrupting running stepstruefalseHeadersIdempotency-Keystring32 bytes buffer (24 randomly generated bytes by the client + 8 bytes epoch timestamp seconds) encoded to hex: const nonce = Buffer.alloc(32); nonce.fill(crypto.randomBytes(24), 0, 24); const nowEpochSeconds = Math.floor(new Date().getTime() / 1000); const t = BigInt(nowEpochSeconds); nonce.writeBigInt64BE(t, 24);Responses 202Cancel request accepted 400Bad Request 401Unauthorized 403Forbidden 404Not Found 500Internal Server Error 502Bad Gateway 503Service Unavailable 504Gateway TimeoutUpdated 4 months ago