Group IDs are larger than int32 | Community
Skip to main content

Group IDs are larger than int32

  • September 23, 2022
  • 5 replies
  • 0 views

https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/

I am using the above reference to assign a group ID to my tickets and it says the datatype is integer however the group IDs are larger than what Int32 supports. If I change it to be a Int64 (long) datatype then I get response 422 on my response.

5 replies

Tipene
  • September 25, 2022
Hi Jarrett,
 
Can you send through an example of the payload you're sending to the API along with a screenshot of the error you're seeing?
 
Thanks!
 
Tipene

  • Author
  • September 26, 2022

I found what was causing my response 422 however my tickets are not being assigned to any group

{"request":{"requester":null,"subject":"Group Test","comment":{"body":"This should be assigned to the Technology group.","uploads":null},"collaborators":null,"additional_collaborators":null,"followers":null,"group_id":1500001780362}}

According to this page (/api/v2/groups.json) the group_id provided should be mapping the ticket to our "Technology" group. However, when looking at the ticket there is nothing listed.


Tipene
  • September 27, 2022
Can you confirm the endpoint you're making the request to? The payload you shared above looks like it may be being sent to the requests API (/api/v2/requests) instead of the tickets API (/api/v2/tickets).

  • Author
  • September 27, 2022

Tipene
  • September 28, 2022
Glad to hear you've got it working!
 
Have a great day :) 
 
Tipene