patch https://examplebaseURL.com/v1/api/apps//label-event-sub
Response Format
Parameter | Type | Description |
---|---|---|
code | Number | Refer to [Success and Error Code] (https://docs.cinnox.com/reference/error-codes-and-rate-limit) |
enabled | Boolean | True or False. When you successfully create the webhook subscription to the label event, the value will be "true". |
url | String | The webhook URL |
updatedAt | String | The label updated day and time |
Webhook URL requirement:
The webhook URL needs to be verified, you will get a POST request with an Action, and are required to set the response in JsonResponse format as below:
Note that the JsonResponse.Result is JSON encoding of the ActionEndpointResponse
ActionEndpointRequest {
+ Challenge string json:"challenge"
+ }ActionEndpointResponse {
+ Challenge string json:"challenge"
+ }JsonResponse {
+ Code int json:"code"
+ Result json.RawMessage json:"result"
+ }