-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |