fleet-memory/hindsight-docs/docs/api-reference/endpoints/cancel-operation.api.mdx
2025-11-27 16:22:16 +01:00

71 lines
No EOL
3.6 KiB
Text

---
id: cancel-operation
title: "Cancel a pending async operation"
description: "Cancel a pending async operation by removing it from the queue"
sidebar_label: "Cancel a pending async operation"
hide_title: true
hide_table_of_contents: true
api: eJy9VktvGzcQ/ivE5NIaG8kxetqbGsupAacJYjUX2wjG3JGWMZdkyFk5W2H/ezHc1SuuExQtqou45Mw3Mx/nwQ0wrhKUN/CWGh879S5QRDbeJbgroKKkownyDSW8RqfJKlSBXGXcSmHqnFZ+q6LuOxWp8Ws5M6yW0TeKa1JfWmoJCthJXlZQgs5wn3abUEDAiA0xRXFpAw4bghJwRY4/mQoKMOJHQK6hgEhfWhOpgpJjSwUkXVODUG6AuyB6iaNxKyiADVvZmAmQuqyg74sd+s7+f2FhR99g5U4wUvAuURK1s9NT+Tum9brVmlJatlZ9GIWhAO0dk2MRxxCs0Rl2+jmJzmbvSt/3fQG/nJ09Bf6I1lSDN/MYffwHqBCi8MJm8LsiRmNlZZia9FTAen10iq57t8x3eMyU8D7uGMe0ogj9XV9s9zBG7A7ovPKDg9AX0KTV95h/SynhimAH9rxoJkMt5LTf2/b3n0nz0a3f5LgG06Pc3R5mT+/A7vNhnA/0/Z2xrchvi8X7J4DD3TbEtZeCqcgSUy4TrqGEKQYzXb+a5vpI0822TvrpLqfTdHOY331O8KXP7BwVxVj+s/eX8G3Z37qZYmqCj2hfJmrQsdGqGRRSl5gatfRRzS7V4IniGlkl9pFSoSJxNLSWJbpKRcLkXVJ+TXEAMZQmt+7WvXihLgi5jZTk80SdnPyKrOutb9fsI67o5KTMS1JNa9kESzsYRcul0YYc2049Gq4VtuwbFH+XqFnRV46oJa4B/3obzTVh1LVAX5jspKU1Ot4jt0mamhP30CqLbtXiKnc2OR7QLsSEpJW6MJZJsi47m7EV6uhTUo8+2ip7I4Rk7gePRn58ME6+VCLphky2G9AXtXEPau6q4I1jAX5DTq6WVK7qr9yiVejSI8Wk7jFRpbwbTZiKHBvusoltUAPum4ihVh9NatGaP3OmCPilY8pcrWl716ssuT6UHCDOvW4bMbOIqB/GsPN6sIdOuBpRqlE4DTfUhkSRVWpD8JHHPJhFXRsmLckgW4uatpnWJkrlrXspjIxJqa6Me0hi87V3jvTBteVMxEhKW59IGafYNDSo7y7/ifo2ydHaTiXTGIvxgDVRng90/sCyxCntV4ZgwoZUvoUdyHWIhHmSzoToI+6tNfnmOOKaYkKba2zkcKwptLdOjb+xuaPOzX2cbdvKydRJg7JGk8yXvcgsoK5JnU1OoYA2WiihZg6pnE4fHx8nmI8nPq6mo26aXl2+nv9+PX95Njmd1NxYARYfh3bxanI6OZWt4BM36A5s/egB8W3r2ezn1b9/fIydVwplGiyaPFRywJuxod4ABgMFrF9BMTw6EhRQHjw/9n1VDo5eDncF1D6xoGw2Un1/RNv3si09ooPy5q6ANUaD99J2bzZQmSTrCsol2kTfif2nD+NI+lk9F8h28jiZO2u0rXxBAQ/UHb6gZP7+j3aPGMqDviasKOb4B5GZ1hT4QPnJu0ReUbsZeD6/mi/m0Pd/AQeDus0=
sidebar_class_name: "delete api-method"
info_path: docs/api-reference/endpoints/agent-memory-api
custom_edit_url: null
---
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Cancel a pending async operation"}
>
</Heading>
<MethodEndpoint
method={"delete"}
path={"/api/v1/memory banks/{agent_id}/operations/{operation_id}"}
context={"endpoint"}
>
</MethodEndpoint>
Cancel a pending async operation by removing it from the queue
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<ParamsDetails
parameters={[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"bank ID"}},{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}]}
>
</ParamsDetails>
<RequestSchema
title={"Body"}
body={undefined}
>
</RequestSchema>
<StatusCodes
id={undefined}
label={undefined}
responses={{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}
>
</StatusCodes>