JSON Data Modification API
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API implementation
Modify data using the JSON web service by sending an HTTPS POST request to the instance.
sysparm_action
parameter to indicate the type of action to be performed, with the incoming JSON object post in
the body.insert
Create a new record in ServiceNow. The JSON object has to be POSTed as the body (content-type is usually application/json, although not enforced). The response from the record creation is a JSON object of the incident that was created.
creates an incident.
insertMultiple
creates two incidents. Note the fields described as an array value for the records field.
update
Update a record or a list of records filtered by an
encoded query string
specified by the
sysparm_query
URL parameter. The JSON object has to be posted as the body (content-type is usually
application/json, although not enforced). The response from the record creation is an array of
JSON objects representing the records that were updated.
updates all incidents with priority 3, and sets the values specified by the JSON object.
deleteRecord
Delete a single record from the targeted table, identified by a
sysparm_sys_id
parameter. The parameter may be encoded in the input JSON object or given as a URL
parameter.
deletes the incident record identified by the sys_id fd4001f80a0a0b380032ffa2b749927b.
deleteMultiple
Delete multiple records from the targeted table, filtered by an
encoded query string
specified in the
sysparm_query
URL parameter. The filter may also be encoded in the input JSON object.
deletes all incident records where the short_description
field contains the
value "this was updated with python".