Create an incident record
On this page
Create an incident record
Use a POST request to create a new record.
Before you begin
Role required: admin, web_service_admin, or rest_api_explorer
About this task
Use the REST API Explorer to send the following request:
POST https://instance.service-now.com/api/now/v1/table/incident
For details about the Table API and examples, see Table API.
Procedure
-
In the top-left of the REST API Explorer, select Table API and version v1.
-
Click Create a record (POST).
For more information about this API endpoint, see Table - POST /now/table/{tableName}.
-
In the Path Parameters section, select the Incident (incident) table.
-
In the Request Body section, click Add a field.
-
Select a field and specify a value for that field.
-
Click the plus sign (+) and specify any additional field to assign a value to.
The request body updates automatically based on your entries, such as
{"short_description":"Test incident creation through REST", "comments":"These are my comments"} -
After constructing the request, click Send.
The response includes a Location header that specifies where the incident was created and how to retrieve the incident.
Tip: Record this header to use in the next part of this guide.
The response also indicates the Status code and Execution time (in milliseconds) of the request.
[Omitted image "rest-api-exp-post-response.png"] Alt text: REST API Explorer POST response
Parent Topic:Use the REST API Explorer
Keep exploring.
Find another answer, or bring this documentation into your own tools.