API - How to create Service Request including the pre-defined tasks through API

API - How to create Service Request including the pre-defined tasks through API

You can get the highlighted Task Template ID's by editing a Task Template:


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"
        },
        "request_template_task_ids": [
            {
                "id": "5"
            },
            {
                "id": "9"
            }
        ],
        "template": {
            "is_service_template": true,
            "service_category": {
                "id": "1"
            },
            "name": "Request account deletion from Active Directory",
            "id": "8"
        },
        "site": {
            "name": "MSP Custom Site",
            "id": "2"
        },
        "account": {
            "name": "My Org Inc",
            "id": "1"
        },
        "status": {
            "name": "Open"
        }
    }
}

                    New to ADSelfService Plus?

                      • Related Articles

                      • Create New request using Python Script

                        Script to raise a new request using Python Script. Pre-requisite - Python should be installed in the server and configured. You can review the instructions here - Requests module should be installed with the python Steps 1. Download the zip file from ...
                      • 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: http://serverurl:postnumber/app#/admin/service-category/1/templates/8 { "request": { "subject": "Unable to fetch mails ...
                      • Pre-define 'Email IDs to notify' with API

                        Email ids to notify can be pre-defined while adding through v1 API. The key is "interestedParty" for the same : Please check the below example : data={ "operation": { "details": { "subject": "Cannot browse", "description": "Unable to connect to the ...
                      • Add request API Using Postman

                        You need to send the TECHNICIAN_KEY and format in Params and the data in Body. Also, you have to encode the body and send it. Please refer to the below for your reference which is sent using postman. Attached is the SAMPLE JSON file Example : ...
                      • How to automatically create multiple child requests from a parent request with a configurable JSON file (V3)

                        This is a sample Python script to automatically trigger the creation of multiple child requests from a parent request, based on the request template chosen. The request ID of the child requests will be added as a Note in the parent request. This is ...