Simulate API errors | Community
Skip to main content

Simulate API errors

  • August 4, 2023
  • 1 reply
  • 0 views

Denis14

Hello, I'm struggling to find a way to get a constant response from Zendesk API with specific error. I want it to make sure my app's tests are deterministic and not fragile. I know other services which provide some test data taht triggers specific response errors.

Is there something like that in the Zendesk API? I didn't find it in the documentation but maybe it is not documented yet. I'm interested in Ticketing API right now but actively extend Zendesk's usage.

Thanks in advance!

1 reply

Denis14
  • Author
  • August 7, 2023

Found some ways to constantly generate error when creating a ticket:

  • produce invalid data. For example, make subject/first comment short or empty
  • create ticket on behalf of suspended user