Description
Update Webhooks.
Request URL
Mail API v1.0 PUT /v1/emails/(uuid:email_id)/webhook
Request Paramters
| Parameter | Value | Style | Type | Description |
|---|---|---|---|---|
| X-Auth-Token | - | header | string | User Token |
| email_id | - | URI | UUID | Email ID |
| webhook_url | - | plain | URL | Webhook URL |
| webhook_keyword | - | plain | string | Webhook Keyword |
Response Paramters
| Parameter | Value | Style | Type | Description |
|---|---|---|---|---|
| webhook | - | plain | dict | - |
| webhook_url | - | plain | URL | Webhook URL |
| webhook_keyword | - | plain | string | Webhook Keyword |
Request Json
{
"webhook_url": "http://webhook.example.com/asdf.asp?update",
"webhook_keyword": "keyword"
}
Normal response codes
200 - Success
Error response codes
401 - Access Denied
404 - Not Found
Repeatable
No
Example
curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \
-d
'{
"webhook_url": "http://webhook.example.com/asdf.asp?update",
"webhook_keyword": "keyword"
}' \
https://mail-hosting.tyo1.cloud.z.com/v1/emails/0c78b7a9d/webhook
HTTP/1.1 200 Success
Date: Tue, 09 Dec 2014 01:46:58 GMT
Server: Apache
Content-Length: 1003
Content-Type: application/json
{
"webhook": {
"webhook_url": "http://webhook.example.com/asdf.asp?update",
"webhook_keyword": "keyword"
}
}