Skip to content

Commit

Permalink
Add "Execute Custom Actions" endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsted committed Apr 25, 2024
1 parent 3388a0a commit 99a462a
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions docs/api/custom-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ r = requests.post('https://webhook.site/token/7d63959e-4fec-49bd-90dc-a461572282
"request.hostname": "webhook.site",
"request.size": 0,
"request.type": "web",
"request.ip": "86.52.35.76",
"request.ip": "127.0.0.1",
"request.user_agent": "Paw/3.3.5 (Macintosh; OS X/11.6.2) GCDHTTPRequest",
"request.url": "https://webhook.site/7fc77812-9efe-41b6-9365-e2c1fb5feb62",
"request.method": "POST",
Expand All @@ -222,26 +222,22 @@ r = requests.post('https://webhook.site/token/7d63959e-4fec-49bd-90dc-a461572282
}
```

### Delete Custom Action
### Execute Custom Actions

* Can require authentication.

**DELETE** `/token/:token_id/actions/:action_id`
**POST** `/token/:token_id/request/:request_id/execute`

### Toggle Custom Actions
Runs all Custom Actions for a specific token and request and returns the output.

* Can require authentication.
#### Response

***PUT*** `/token/:token_id/actions/toggle`
`200 OK`

This endpoint toggles whether actions are enabled on a specific token.
*See [Test Custom Action](#test-custom-action) endpoint.*

#### Response
### Delete Custom Action

`200 OK`
* Can require authentication.

```json
{
"enabled": true
}
```
**DELETE** `/token/:token_id/actions/:action_id`

0 comments on commit 99a462a

Please sign in to comment.