Bug in triggers api endpoint /api/v2/triggers/active
Based on the documentation below, we should be able to pass category_id as a query param to this endpoint. However, the endpoint returns all active triggers and not just the ones associated with my category_id.
https://developer.zendesk.com/api-reference/ticketing/business-rules/triggers/#list-active-triggers
-
Hi Kyle,
The page there is kinda confusing. The endpoint you're trying (/api/v2/triggers/active) doesn't have a parameter for category_id, unfortunately. I think you'll want the /api/v2/triggers/ endpoint, and to pass the active status as a parameter too. Does this work for you?
https://domain.zendesk.com/api/v2/triggers?active=true&category_id=123456789 -
Yep that's what I ended up doing. The documentation definitely calls out category_id as a parameter but it may not be respected or used in the backend.
-
I'm unable to view option to activate "Custom Object" under “Admin Center -> Objects and rules” as mentioned in below link.
Can you please share how can we view this option to Active Custom Objects?
---
Por favor, entrar para comentar.
4 Comentários