Post API to create an incident with the assignment group, Assigned To, Impact, Urgency and state all field that are mandatory in body.

Jones1
Kilo Contributor

Post API to create an incident with the assignment group, Assigned To, Impact, Urgency and state all field that are mandatory in body.

7 REPLIES 7

Community Alums
Not applicable

Are you asking for some help on how to POST data to the instance, and ensure those fields you specified are mandatory?

The best approach here would be to use a Scripted REST API; this way you can validate the data in the method, and if something is missing, return an error without inserting the record. Or, set some default values and insert anyways.

This might be another option to explore (Import Set API)

As well as this (Data Policy)

can you help review the attached scrip for any correct

Community Alums
Not applicable

At initial glance, it looks good to me!

Raghu Ram Y
Kilo Sage

Hi,

This link clearly explains about POST API.

Hope it helps, If so please mark my response as both HELPFUL and CORRECT