Enable Notifications

POST {{api-domain}}/crm/v2.1/actions/watch

To enable instant notifications of actions performed on a module. Click here to know more.

Request Body

{"watch"=>[{"channel_id"=>"1000000068001", "events"=>["Solutions.create", "Price_Books.create", "Contacts.create", "Solutions.edit"], "channel_expiry"=>"2018-02-02T10:30:00+05:30", "token"=>"TOKEN_FOR_VERIFICATION_OF_1000000068001", "notify_url"=>"https://www.zoho.com/callback?authorization=Zoho-oauthtoken 1000.23dnsbbbh455jnn&key1=val1&key2=val2"}, {"channel_id"=>"1000000068002", "events"=>["Deals.all"], "channel_expiry"=>"2018-02-02T10:30:00+05:30", "token"=>"TOKEN_FOR_VERIFICATION_OF_1000000068002", "notify_url"=>"https://www.zoho.com/callback?authorization=Zoho-oauthtoken 1000.23dnsbbbh455jnn&key1=val1 key2=val2&key3=val1"}, {"channel_id"=>"1000000068003", "events"=>["Cases.all"], "channel_expiry"=>"2018-02-02T10:30:00+05:30", "token"=>"TOKEN_FOR_VERIFICATION_OF_1000000068003", "notify_url"=>"https://www.zoho.com/callback?authorization=Zoho-oauthtoken 1000.23dnsbbbh455jnn&key1=val1"}]}

RESPONSES

status: Created

{"watch":[{"code":"SUCCESS","details":{"events":[{"channel_expiry":"2021-05-03T20:27:17+05:30","resource_uri":"https://www.zohoapis.com/crm/v2/Contacts","resource_id":"4150868000000002179","resource_name":"Contacts","channel_id":"1000000068001"},{"channel_expiry":"2021-05-03T20:27:17+05:30","resource_uri":"https://www.zohoapis.com/crm/v2/Solutions","resource_id":"4150868000000002211","resource_name":"Solutions","channel_id":"1000000068001"},{"channel_expiry":"2021-05-03T20:27:17+05:30","resource_uri":"https://www.zohoapis.com/crm/v2/Price_Books","resource_id":"4150868000000002217","resource_name":"Price_Books","channel_id":"1000000068001"}]},"message":"Successfully subscribed for actions-watch of the given module","status":"success"},{"code":"SUCCESS","details":{"events":[{"channel_expiry":"2021-05-03T20:27:17+05:30","resource_uri":"https://www.zohoapis.com/crm/v2/Deals","resource_id":"4150868000000002181","resource_name":"Deals","channel_id":"1000000068002"}]},"message":"Successfully subscribed for actions-watch of the given module","status":"success"},{"code":"SUCCESS","details":{"events":[{"channel_expiry":"2021-05-03T20:27:17+05:30","resource_uri":"https://www.zohoapis.com/crm/v2/Cases","resource_id":"4150868000000002209","resource_name":"Cases","channel_id":"1000000068003"}]},"message":"Successfully subscribed for actions-watch of the given module","status":"success"}]}