swsd_create_service_request
Submit a catalog request to create a service request incident. Accepts catalog item ID and form variable values to populate the request.
Instructions
Submit a SWSD catalog request, creating an incident with is_service_request: true (auto-set by SWSD on this endpoint) and the supplied form variable values. Use swsd_list_catalog_items to find the right catalog_item_id and swsd_get_catalog_item to inspect its variables before filling. Each request_variables entry needs custom_field_id (= the catalog item variable's id) and value (stringified to match the variable's kind — for dropdowns, one of the options choices). The created incident's id is returned for follow-up calls (swsd_get_incident, swsd_assign_incident, etc.). WRITE — does not retry on transient failure; the agent should verify with swsd_get_incident before retrying. To set tenant-specific custom field values, pass custom_fields: [{name, value}] — call swsd_describe_custom_fields first to discover field names and (for Dropdowns) allowed values. Validated for Text, Dropdown, Number, Checkbox, and Date types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog_item_id | Yes | Catalog item id from `swsd_list_catalog_items` or `swsd_get_catalog_item`. The endpoint URL embeds this; SWSD auto-populates the resulting incident's name, category, and subcategory from the catalog item. | |
| request_variables | No | Form variable values, one entry per catalog variable being filled. Use `swsd_get_catalog_item` first to discover the available variables and required ones (`required: "1"`). | |
| requester_email | No | Email of the user the request is for. Defaults to the authenticated user (resolved from the JWT). SWSD rejects numeric requester ids on this endpoint, so pass an email if you need to file the request on behalf of someone else. | |
| description | No | Optional free-text description added to the resulting incident. The catalog item's default description from the SWSD UI is replaced if you pass this. | |
| custom_fields | No | Set tenant-specific custom field values on the record. Multi_picklist and User-type fields are not yet supported by this tool (set those via the SWSD UI). Validated for Text, Dropdown, Number, Checkbox, and Date types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incident | Yes |