{"_id":"56391f722fc5520d001a4d70","user":"55359b006dfbb90d003462b5","project":"55357364e02d480d0003c6d3","category":{"_id":"5639113f049e420d00476b03","project":"55357364e02d480d0003c6d3","__v":5,"version":"553591cd63cc650d00312925","pages":["563917851593e4190073a3dc","56391a7e1593e4190073a3e6","56391e7c2fc5520d001a4d6e","56391f722fc5520d001a4d70","563924a968b11f0d0048c9c0"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-03T19:55:43.923Z","from_sync":false,"order":10,"slug":"webhooks","title":"Webhooks"},"version":{"_id":"553591cd63cc650d00312925","project":"55357364e02d480d0003c6d3","__v":13,"forked_from":"55357365e02d480d0003c6d6","createdAt":"2015-04-20T23:54:53.134Z","releaseDate":"2015-04-20T23:54:53.134Z","categories":["553591cd63cc650d00312926","553591cd63cc650d00312927","5536e4d39f7f2d0d00b1cd54","5536e55c20d5ca0d0001580a","5536e6bf7fe60f0d000fd1c0","5536f5bba171250d00c00556","553a974369c2630d00a8562e","553a97c60074c80d00621c2a","553a98332af5f20d000fc32a","553a9b9869c2630d00a85642","556e0f23d02e0b190042f13d","563249b1dcc27a1700823650","5639113f049e420d00476b03","59a5dd94aaa11d003334edb4"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"__v":1,"editedParams":true,"editedParams2":true,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-03T20:56:18.058Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"","code":"PUT https://api.goformz.com/v2/webhooks/0596f81d-7b85-4ac2-8c10-30580c13b92a","language":"http"}]},"method":"put","results":{"codes":[]},"settings":"","auth":"required","params":[{"_id":"56391f722fc5520d001a4d71","ref":"","in":"path","required":true,"desc":"Id of the existing webhook to update","default":"","type":"string","name":"id"},{"_id":"563922b5ec0f5d0d0085e7de","ref":"","in":"body","required":true,"desc":"Webhook object","default":"","type":"object","name":"body"}],"url":"/webhooks/:id"},"isReference":false,"order":3,"body":"Sample Request Body:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": \\\"0596f81d-7b85-4ac2-8c10-30580c13b92a\\\",\\n  \\\"eventType\\\": \\\"form.complete\\\",\\n  \\\"targetUrl\\\": \\\"http://my.webhooks.com/formComplete\\\",\\n  \\\"entityId\\\": \\\"28b3af03-6ae2-4a1c-9b01-a46c0108d3c5\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nThe `entityId` in the context of the `form.complete` event is the template id.\n\n</br><a href=\"https://api.goformz.com/docs/api/explorer/index#!/Webhooks/Webhooks_Put\" target=\"_blank\"><img src=\"https://files.readme.io/9Z82WIZnS7mZmco8oi4u_TryItNow3.png\" style=\"margin-left:15px\" width=\"128\" height=\"42\" ></a>","excerpt":"","slug":"update-an-existing-webhook","type":"endpoint","title":"Update an Existing Webhook"}

putUpdate an Existing Webhook


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
Id of the existing webhook to update

Body Params

body:
required
object
Webhook object

Examples


Documentation

Sample Request Body: [block:code] { "codes": [ { "code": "{\n \"id\": \"0596f81d-7b85-4ac2-8c10-30580c13b92a\",\n \"eventType\": \"form.complete\",\n \"targetUrl\": \"http://my.webhooks.com/formComplete\",\n \"entityId\": \"28b3af03-6ae2-4a1c-9b01-a46c0108d3c5\"\n}", "language": "json" } ] } [/block] The `entityId` in the context of the `form.complete` event is the template id. </br><a href="https://api.goformz.com/docs/api/explorer/index#!/Webhooks/Webhooks_Put" target="_blank"><img src="https://files.readme.io/9Z82WIZnS7mZmco8oi4u_TryItNow3.png" style="margin-left:15px" width="128" height="42" ></a>