Create an SR with Service Catalog

You can create an SR with the Service Catalog using the following API Request.Ā 

To authenticate the below API, seeĀ API Authentication and Authorization.

Service NameHTTP Method
SR_LogServiceCatalogĀ 

POST


Sample Request
{
  "ServiceName": "SR_LogServiceCatalog",
  "objCommonParameters": {
    "_ProxyDetails": {
      "AuthType": "APIKEY",
      "APIKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "OrgID": "1",
      "ReturnType": "JSON",
      "ProxyID": 0,
      "TokenID": ""
    },
    "objSRServiceTicket": {
      "ServiceCatalogID": 1031,
      "LogSRForUserMode": false,
      "ServiceCategoryID": 1,
      "DelegationMode": false,
      "WorkGroupID": 17,
      "DelegateeUserID": 0,
      "Org_ID": "1",
      "strCustomAttributes": [
        {
          "Attribute_Type": "TextArea",
          "Attribute_Value": "Test forServiceCatalog",
          "Attribute_ID": 1085,
          "Attribute_Name": "Address"
        }
      ],
      "strMvCustomAttributes": [
        {
          "RowID": "1",
          "Attribute_Value": 18,
          "AttributeType": "TEXTBOX",
          "Attribute_ID": "1075",
          "Attribute_Name": "Age",
          "Attribute_Text": 18
        }
      ],
      "ServiceCategoryName": "Desktop",
      "ServiceCatalogName": "NoApproval",
      "JustificationRemarks": "remarks",
      "NoOfApprovals": 2,
      "Approver1Name": "Jyothi",
      "Approver1": "WorkgroupOwnerApproval",
      "Approver1Id": "9",
      "Approver2Name": "Megha",
      "Approver2": "TechnicianSelectable",
      "Approver2Id": "6",
      "SupportFunction": "ITTec"
    }
  }
}

Request Parameters

Parameter NameTypeDescriptionMandatory

SupportFunctionĀ 

STRING

The value is Instance Code.Ā 

For Example: IT Tec.

TRUE

ServiceCatalogIDĀ 

INTEGER

Unique Identification number of the Service Catalog.Ā 

  • If the Service Catalog has mandatory Custom Attributes, the strCustomAttributes parameter is mandatory:
  • If the Service Catalog has mandatory multivalued custom attributes, the strMvCustomAttributes is mandatory.

Note:

It is mandatory to provide eitherĀ ServiceCatalogIDĀ orĀ ServiceCatalogNameĀ value.

TRUE

ServiceCatalogName

STRING

Name of the Service Catalog.

TRUE

IfĀ ServiceCatalogIDĀ value is provided then it is not mandatory.

ServiceCategoryIDĀ 

INTEGER

Unique Identification number of the Service Category.

Note:

It is mandatory to provide eitherĀ ServiceCategoryIDĀ orĀ ServiceCategoryNameĀ value.

TRUE

ServiceCategoryName

STRING

Name of the Service Category.

TRUE

IfĀ ServiceCategoryIDĀ value is provided then it is not mandatory.

WorkGroupIDĀ 

INTEGER

Unique Identification number of the Workgroup.

Note:

It is mandatory to provide eitherĀ WorkGroupIDĀ orĀ WorkGroupNameĀ value.

TRUE

WorkGroupName

STRING

Name of the Workgroup.

TRUE

IfĀ WorkGroupIDĀ value is provided then it is not mandatory.

JustificationRemarks

STRING

Specify the Remarks.

TRUE

Org_IDĀ 

STRING

Unique Identification numberĀ  of an organization.

TRUE

NoOfApprovalsĀ 

INTEGER

Based on NoOfApprovals count user needs to provide approver details.

TRUE

Sample Response
{
    "Errors": "",
    "Message": null,
    "Output": "",
    "TokenID": "",
    "OrgID": 0,
    "OutputObject": {
        "CatalogD etails": {
            "Message":"Successfully	saved the service request. Service Request ID: SR2512",
            "SRId": "2512",
            "UploadControlUID": []
        }
    }
}

Status and Error Codes

For more information, seeĀ Status and Error Messages.