Skip to main content
Solved

How do I create an unassigned ticket via the API

  • January 13, 2023
  • 2 replies
  • 242 views

jdanyow
Apprentice
Forum|alt.badge.img

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?

Best answer by jdanyow

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

 

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+5
  • Community Debut
  • 80 replies
  • January 13, 2023

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.


jdanyow
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 1 reply
  • Answer
  • January 13, 2023

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