Rest API wont create incident due to Data Policy Exception: \n\tThe following fields are mandatory

AndersBGS
Tera Patron
Tera Patron

Hi all,

 

I'm trying to create an incident from Postman utilizing Oauth2.0 Authentication. In general this work except populating the description field. If I put in the JSON:

 

 

{"description":"test","short_description":"test","caller_id":"3d43a2df933bce1099f937647aba106b"}

 

 

It will not populate due to data policy exception rule that I have in place. 

 

If I remove the rule, then it will populate except that "description" field is empty even though that I have listed what should be posted in the POST body. 

 

As you can see below, the field is named "description" and lives on the task table:

AndersBGS_0-1726869779960.png

 

What is wrong here, and why isn't the description from the JSON populated to the description field on the incident table when making the REST API call from postman? 

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

1 ACCEPTED SOLUTION

AndersBGS
Tera Patron
Tera Patron

Located myself that this was only a role issue. After added correct roles, Oauth integration works without issues. 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

View solution in original post

2 REPLIES 2

Gangadhar Ravi
Giga Sage
Giga Sage

@AndersBGS  Have you tried to check if there is any client scripts clearing the value of description ?

AndersBGS
Tera Patron
Tera Patron

Located myself that this was only a role issue. After added correct roles, Oauth integration works without issues. 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/