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

                    • How to automatically create multiple tasks in a change request with a configurable JSON file.

                      Note:  Attached script will not work beyond 11138 SDP Version. ​ This is a sample Python script  to automatically  create multiple tasks within a change request  with a configurable JSON file. This is achieved  using an API call to create a task in ...
                    • How to create service requests through email using Business Rule

                      Note: Template can be modified directly using BR from build 11.3 This post describes the use of a python script to create a service request through email based on keywords in the subject. When a request is created with specific keywords in the ...
                    • 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 ...
                    • 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 ...
                    • 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 ...