Update Webhook

Update Webhook

Overview

This API updates the details of an existing outgoing webhook. You change the webhook name, description, triggers and also the URL. If the URL is altered, a validation post call (Ping trigger) is sent to the new URL.

 

API 

PATCH /api/v1/webhook/{id}

 

Oauth Scope

ZohoPulse.outgoingwebhook.UPDATE

 

Sample request

  1. $curl -X PATCH https://connect.zoho.com/api/v1/webhook
  2. -H "scopeid:5313000000002002"
  3. -H" Authorization:Zoho-oauthtoken        1000.3d0a155402XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  4. -d '{
  5. "active":"true",
  6. "triggers":[
  7. {
  8. "type":"Task_Assigned"
  9. },
  10. {
  11. "type":"User_Mentioned_In_Post",
  12. "partitionIds":["3000000005135"]
  13. },
  14. {
  15. "type":"Group_Mentioned_In_Post",
  16. "partitionIds":["3000000005135"]
  17. }
  18. ]
  19. }'

 

Sample response

  1. {
  2. "id":"3000000126027",
  3. "name":"Notify in Cliq",
  4. "active":"true",
  5. "autoRetry":"true",
  6. "createdTime":"1635755951141",
  7. "createdBy":"15521849",
  8. "description":"Notify important Connect activities in Zoho Cliq Channel",
  9. "url":"https://cliq.zoho.com/api/v2/channelsbyname/zo
  10. hoconnect/message",
  11. "triggers":[
  12. {
  13. "type":"Task_Assigned"
  14. },
  15. {
  16. "type":"User_Mentioned_In_Post",
  17. "partitionIds":["3000000005135"]
  18. },
  19. {
  20. "type":"Group_Mentioned_In_Post"
  21. }
  22. ]
  23. }

If you have any queries regarding outgoing webhooks, reach out to us at support@zohoconnect.com. We're happy to help!