API - How to Add Service Request through API

API - How to Add Service Request through API

The Service Category ID and Template ID (as) can be known by going to Admin > Service Category > select and edit the template:


{
    "request": {
        "subject": "Unable to fetch mails andresss",
        "description": "I am unable to fetch mails from the mail server",
        "requester": {
            "id": "1807",
            "name": "Requester"
        },
        "template": {
            "is_service_template": true,
            "service_category": {
                "id": "1"
            },
            "name": "Request account deletion from Active Directory",
            "id": "8"
        },
        "site": {
            "name": "MSP Site",
            "id": "2"
        },
        "account": {
            "name": "My Org Inc",
            "id": "1"
        },
        "status": {
            "name": "Open"
        }
    }
}

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script for adding a new request according to the option selected by requester and new request created will be added to notes

                      This is a script for adding new request from a older request according to the option selected by the requester. If requester selects option A request must be closed , if requester selects option B a new request will be created and the new request ID ...
                    • Update request additional field with Custom Request ID

                      Requirement: Each Organization's request ID format may differ. In the current model, replacing the existing request id with these is not possible; however, the same can be replaced in an additional field. Custom Format : Example: 202305221125001 ...
                    • How to update a request based on certain values.

                      This post describes the use of a python script to update requests based on values given in the request_properties.json file. This action can be performed using Custom Triggers. UseCase:  We have a Service template for account lockout/password reset. ...
                    • Auto-create a change via a service request

                      Requirement: When a request for change is submitted by a user via a service request with resource answers, then a change should be auto-created, resource answers copied to its description, and the change should be associated with the service request ...
                    • Duplicate Request

                      Usecase: Script to duplicate the request in a single click using Callback Function and Page Script. Steps to configure: Download the attached files Login to SDP and navigate to Admin > Developer Space > Global Function > Copy & Paste the attached ...