Skip to content

Commit

Permalink
fix request body
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwaits committed Aug 14, 2024
1 parent 1bf5dbe commit 5f61e40
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions content/docs/stacks/platform-api/chainhooks/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,38 @@ import {

### Request Body

<Property name={"config"} type={"JSON"} required={true} deprecated={undefined}>
<Property name={"body"} type={"string"} required={true} deprecated={undefined}>

Chainhook predicate configuration

<ObjectCollapsible name="Example predicate">

```json
{
"config": {
"name": "platform-api",
"uuid": "aa3626dc-2090-49cd-8f1e-8f9994393aed",
"chain": "stacks",
"version": 1,
"networks": {
"mainnet": {
"if_this": {
"scope": "block_height",
"higher_than": 161620
},
"end_block": null,
"then_that": {
"http_post": {
"url": "https://webhook.site",
"authorization_header": "12345"
}
},
"start_block": 161620,
"decode_clarity_values": true,
"expire_after_occurrence": null
}
"name": "platform-api",
"uuid": "aa3626dc-2090-49cd-8f1e-8f9994393aed",
"chain": "stacks",
"version": 1,
"networks": {
"mainnet": {
"if_this": {
"scope": "block_height",
"higher_than": 161620
},
"end_block": null,
"then_that": {
"http_post": {
"url": "https://webhook.site",
"authorization_header": "12345"
}
},
"start_block": 161620,
"decode_clarity_values": true,
"expire_after_occurrence": null
}
}
}
```
```

</ObjectCollapsible>

Expand Down

0 comments on commit 5f61e40

Please sign in to comment.