rest-api skill creates Scripted REST APIs (sys_ws_definition) — custom HTTP endpoints exposed by your ServiceNow instance. Define the API, add resources (path segments), and configure GET/POST/PUT/DELETE method handlers.REST API
Scripted REST APIs with HTTP method handlers.
The
| Operation | Description |
|---|---|
| add_query_parameter | Add a query parameter definition to a resource |
| add_resource | Add a resource path with an HTTP method handler script |
| create_api | Create a scripted REST API definition |
Run
sn ops rest-api to see the full input schema for each operation.You
Create a scripted REST API endpoint that returns incident statistics by category.