ServiceNow Scripted REST APIs (2026): 06 – POST

Опубликовано: 05 Август 2026
на канале: Secretary of Simplification
103
2

Now that we can read vehicles, let's create them. In this video we add a POST endpoint that accepts vehicle data in the request body, inserts it into our table, and returns the sys_id of each new record.

You'll learn:
How to read a JSON request body using request.body.data
How to insert records with GlideRecord and capture the sys_id on insert
Why POST returns HTTP 201 (Created) rather than 200 (OK)

Chapters:
0:00 Introduction
0:43 Concept
1:40 Demo
3:01 Outro

GitHub: https://github.com/jnichols-serviceno...

Links:
ServiceNow docs — Scripted REST APIs — https://www.servicenow.com/docs/r/api...
HTTP semantics (RFC 9110) — https://www.rfc-editor.org/rfc/rfc9110

Series navigation:
Previous: 05 — GET
Next: 07 — PUT and PATCH
Full playlist:    • ServiceNow Scripted REST APIs (2026)