For more information on using API

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

UserApiEventUpdate

Name

Description

Type

Additional information

name

The name of the web-hook

string

Required

url

The url that the web hook will call

string
event_type

Event type

is_active

Is this web-hook active or not

boolean
stateid

Web hook state (deprecated - please use the is_active flag)

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.