ServiceNow Scripted REST APIs (2026): 06 – POST
Secretary of Simplification
·
Jun 25, 2026
·
video
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-servicenow/SN2026-Vehicles-API *Links:* - ServiceNow docs — Scripted REST APIs — https://www.servicenow.com/docs/r/api-reference/rest-api-explorer/c\_CustomWebServices.html - HTTP semantics (RFC 9110) — https://www.rfc-editor.org/rfc/rfc9110 *Series navigation:* - Previous: 05 — GET - Next: 07 — PUT and PATCH - Full playlist: https://www.youtube.com/playlist?list=PLrhqGp3sUzhvp1sfgP8OZjXRxKOP\_cyBU
https://www.youtube.com/watch?v=QZGpmyPCOyY