ticket object: assignee_id property is returned as null even if we pass valid agent id in create ticket API | The place for Zendesk users to come together and share
Skip to main content
Question

ticket object: assignee_id property is returned as null even if we pass valid agent id in create ticket API

  • May 26, 2022
  • 3 replies
  • 1 view

assignee_id property is returned as null in response even if we pass valid agent id in create ticket API .

3 replies

Tipene
  • Employee
  • May 26, 2022

Hi Desh,

Can you share the payload that you're sending to the create ticket endpoint, as well as the response you're receiving? Can you also confirm that the assignee_id parameter you're using matches the ID found in the URL of the specific users page in your Zendesk account.

Thanks!

Tipene


  • Author
  • May 27, 2022

Hi Tipene,

As requested below are the screenshot:

Agent id (903838681546) which we are using in the api to create ticket

Request and response when we try to create ticket with above agent id:


Tipene
  • Employee
  • May 27, 2022

Hey Desh,

Thanks for sending these through.

One potential cause of the issue you're seeing could be that the assignee is not a member of the group that the ticket is being assigned to and therefore does not have permissions to be assigned to the ticket. Are you able to test this by either removing the group_id, or changing the assignee_id to an id you know is a member of the group.