Solved

How do I create an unassigned ticket via the API

  • 13 January 2023
  • 2 replies
  • 143 views

Badge

Agent is not required when submitting a ticket:

But I’m getting 400 Bad Request response status when attempting to create an unassigned ticket via the API:

{
  "description": "Validation failed",
  "errors": [
    {
      "field": "responder_id",
      "message": "It should be a/an Positive Integer",
      "code": "invalid_value"
    }
  ]
}

 

This old post seems to confirm responder_id is not required:

 

What am I doing wrong?

icon

Best answer by jdanyow 13 January 2023, 15:16

View original

2 replies

Userlevel 3
Badge +5

Hi @jdanyow,

 

Could you share the API call and body/payload details for which you’re receiving this error so that we can check further? Ideally, if the “Agent” field is non-mandatory for submission, then that particular error should not appear

 

Regards,

Sona 

Freshdesk, Freshchat, Freshcaller product expert

Are you interested in learning more about how our services can help add value to your business? Check out our Professional Services to know more & get started.

Badge

My fault- looks like in the create ticket API response will return a null responder_id (assigned agent) but *you cannot pass a null responder_id in the create ticket request body*.

https://developers.freshdesk.com/api/#create_ticket

 

Reply