Variable | Type | Description |
---|---|---|
list_id | int|string | The ID of the list for which to activate webhook settings |
webhook_url | string | The URL of the webhook where data will be sent |
events | array|struct | The events for which to send data. The value can be one of: "import", "subscribe", "newsletter_status", "unsub", "spam", "bounce", "view", "click" |
Parameter | Description |
---|---|
boolean | True if the update has succeeded, False otherwise |
true
Code | Message | Description |
---|---|---|
407 | Missing required param list_id | list_id param is required |
407 | Missing required param webhook_url | webhook_url param is required |
407 | Missing required param events | events param is required |
407 | No such list | Invalid list |
1901 | Missing webhook url or events | Missing webhook url or events |
1902 | Invalid webhook url | Invalid webhook url |
1903 | Invalid webhook event | Invalid webhook event |
101 | Not allowed for list_id = %s | Invalid access to list_id |
407 | Missing required param webhook_url | Parametrul webhook_url este obligatoriu |
407 | Missing required param events | Parametrul events este obligatoriu |
1901 | Missing webhook url or events | Lipsește webhook_url sau events |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing required param webhook_url", "code": 407 }
{ "err": true, "message": "Missing required param events", "code": 407 }
{ "err": true, "message": "Invalid webhook url", "code": 1902 }
{ "err": true, "message": "Invalid webhook event", "code": 1903 }