PUT https://webapi.mymarketing.co.il/api/webhooks/{id}
Update a Webhook
Request Information
URI Parameters
Name
Description
Type
Additional information
id
Webhook id. Can be found using the endpoint "Get account's Webhooks information"
integer
Required
Body Parameters
Name
Description
Type
Additional information
name
The name of the web-hook
string
Required
url
The url that the web hook will call
string
is_active
Is this web-hook active or not
boolean
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "url": "sample string 2", "event_type": "contact_change", "is_active": true, "stateid": 5 }
application/xml, text/xml
Sample:
<UserApiEventUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <event_type>contact_change</event_type> <is_active>true</is_active> <name>sample string 1</name> <stateid>Untitled</stateid> <url>sample string 2</url> </UserApiEventUpdate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.