Integration REST API

Erick15
Tera Contributor

i can update and insert a inc or request whit a only endpoint?, whit metod POST

 

regards!!

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage

Hi @Erick15 ,

 

Yes endpoint is required to update/insert record into servicenow or any application when it comes to API.

 

When it comes to insert u would require POST method along with diff parameters which are mandatory to be sent along with endpoint as a body to create/insert a record

 

For update you would required a PUT method along with the sysid (mandatory)of the record which you want to update. Here also u need to send some parameters in the body of the API to update the records.

 

Thanks,

Danish

 

View solution in original post

3 REPLIES 3

Danish Bhairag2
Tera Sage

Hi @Erick15 ,

 

Yes endpoint is required to update/insert record into servicenow or any application when it comes to API.

 

When it comes to insert u would require POST method along with diff parameters which are mandatory to be sent along with endpoint as a body to create/insert a record

 

For update you would required a PUT method along with the sysid (mandatory)of the record which you want to update. Here also u need to send some parameters in the body of the API to update the records.

 

Thanks,

Danish

 

Prince Arora
Tera Sage

@Erick15 

 

Yes you can do both the action using the inbound rest APIs in ServiceNow

@Erick15 

 

Here are the steps:

Create a new Incident:

https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/inbound-rest/task/t_...

 

Update incident:

https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/inbound-rest/task/ge...

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.