post Webhook Endpoints Id Webhook Subscriptions
POST {{baseUrl}}/webhook_endpoints/:id/webhook_subscriptions?subdomain={{subdomain}}
Create a subscription
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
subdomain | string | (Required) Used to scope the request to the specified institution |
Request Body
{"resource_type"=>"<string>", "event"=>"<string>", "active"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"code":"\u003cboolean\u003e","description":"\u003cstring\u003e","error":["\u003cstring\u003e","\u003cstring\u003e"],"data":{"id":"\u003cinteger\u003e","webhook_endpoint_id":"\u003cinteger\u003e","institution_id":"\u003cinteger\u003e","resource_type":"\u003cstring\u003e","event":"\u003cstring\u003e","active":"\u003cboolean\u003e","created_at":"\u003cstring\u003e","updated_at":"\u003cstring\u003e"},"count":"\u003cinteger\u003e"}