REST API, Python and creating new incident ticket

Grzegorz2
Kilo Explorer

Hello,

I have an issue with creating an incident ticket using REST API and Python. In general it works, I can create it, set short description, CIs, contact information, priorities etc.. But not everything works fine. When I try to also fill creator group in the ticket, it works as long as I won't take a look in the ticket. Then the group blinks and dissipaters from the view. But the worst issue is when I try to create and assign the incident to some group, it just fails but in a strange way. REST API response is 201, so it looks good, but in response headers I can see things like:

'location': 'https://xxx.xxx.xxx/api/now/table/incident/NULL'

So, I can create the incident, but only if assignment group isn't specified. What can be wrong here?

6 REPLIES 6

When you log into ServiceNow as the user you're authenticating your HTTP request with, are you able to see any Assignment group information (in any tickets) at all?

Yes, in the tickets created manually everything looks fine, and I also can modify tickets, change assignment groups.