logo

NJP

Add a POST Resource and OpenAPI Schema for MCP

ServiceNow Dev Program · Aug 26, 2026 · video

Previous: https://youtu.be/H4SgKjIvWjQ Next: https://youtu.be/P7maAhTEKcE Full written series: https://devlink.sn/mcp-server-console-series Reading data is only half the job. Here I add a POST resource for updating incidents, then define an OpenAPI schema so the AI knows exactly what the POST body will accept. 📘 Step-by-step directions and scripts to copy and paste: https://devlink.sn/mcp-server-console-series ## In this video - Creating the POST resource with a path parameter and GlideRecord script - Why a POST body needs a schema: properties, value types, meanings, required fields - Creating the Update Incident Schema record - Linking the schema to the POST resource through Request Schemas - An honest note about where that JSON blob came from ## Timestamps 00:00 - Reading data is only half the job 00:09 - Creating the POST resource 00:26 - Why the POST body needs a schema 00:56 - Creating the OpenAPI schema 01:14 - Where the schema actually came from 01:27 - Linking the schema to the resource 01:47 - What's next #ServiceNow #MCP #RESTAPI #AI #OpenAPI

View original source

https://www.youtube.com/watch?v=2aWfFCewdOA