Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsted committed Aug 5, 2024
1 parent 096cbd3 commit a51d02f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/faq.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ To set it up, first, [create an API Key](https://webhook.site/api-keys).

Then create a Schedule like the following screenshot.

In this example, Webhook.site will remove data older than 7 days every 24 hours. Remember to click the URL Encode button before saving.
In this example, Webhook.site will remove data older than 7 days every 24 hours. `now-12h` would be 12 hours. [More date format examples](/api/date-expressions.html).

* Schedule Name: Can be anything you want.
* URL: `https://webhook.site/token/00000000-0000-0000-000000000/request?query=created_at:[* TO now-7d]` - replace `00000000-0000-0000-000000000` with the URL/Token ID.
Remember to click the URL Encode button before saving.

* URL: `https://webhook.site/token/00000000-0000-0000-000000000/request?date_to=now-7d` - replace `00000000-0000-0000-000000000` with the URL/Token ID.
* Method: `DELETE`
* Headers: `Api-Key: 00000000-0000-0000-000000000` - replace `00000000-0000-0000-000000000` with your API key.

Expand Down
Binary file modified docs/images/schedule-autodelete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a51d02f

Please sign in to comment.