Skip to content

Commit

Permalink
Fix delete actions docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tabaza committed Aug 27, 2024
1 parent b4e6f50 commit 5cc0ac6
Showing 1 changed file with 1 addition and 50 deletions.
51 changes: 1 addition & 50 deletions docs/api-reference/endpoint/delete-all-actions.mdx
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
---
title: "Delete all actions"
api: "DELETE https://api-v2.opencopilot.so/backend/actions/bot/:id"
description: "Delete all actions from a copilot by ID"
openapi: delete /actions
---

<Warning>
This endpoint points to the (v2) version of the API. The (v2) version of the API is the latest version and is recommended for all new development. Please update your code to use the (v2) version of the API.
</Warning>


### Body

<ParamField path="id" type="string">
The uuid of the copilot
</ParamField>

### Headers

<ParamField path="header" name="Accept" type="string">
application/json
</ParamField>

<ParamField path="header" name="Authorization" type="string">
Bearer YOUR_TOKEN
</ParamField>

### Response

<ResponseField name="message" type="string">
Indicates whether the call was successful.
</ResponseField>

<RequestExample>

```bash Example Request
curl --location --request DELETE 'https://api-v2.opencopilot.so/backend/actions/bot/:id' \
--header 'Accept: application/json' \
--header 'Authorization : Bearer YOUR_TOKEN'
```

</RequestExample>

<ResponseExample>

```json Response
{
"message": "All actions deleted successfully"
}
```

</ResponseExample>

0 comments on commit 5cc0ac6

Please sign in to comment.