Scroll export button scope current template-id 4fda9400-a7df-4ede-a95f-e4ae5fcf4796 caption Download this Page add-on Scroll PDF Exporter
Feature released in SummitAI Service Management (Denali SP1, SummitAI Platform)
What's New?
The following new APIs are added for the Common Master and User Master:
AnchorAuthentication Authentication
Authentication
Authentication | |
Authentication |
To authenticate the APIs, use the Form or API login details. Create a User with the required Role Template access, use these details to authenticate, and execute the APIs. For more information, see Adding Users.
Common Parameters
Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Common Parameters
|
Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Common Parameters
|
AnchorRetrieving the Complete Common Master Data with the CM ID Retrieving the Complete Common Master Data with the CM ID
Creating or Updating the Common Master
Retrieving the Complete Common Master Data with the CM ID | |
Retrieving the Complete Common Master Data with the CM ID |
Common Master is a unique feature in the SummitAI application that allows Administrators to set most commonly used label names and drop-down values across all the modules. If there is a change or addition required in the label names or drop-down values, this feature saves the efforts of the Administrator to make the same changes in all the pages separately. In other words, it simplifies the customization process required to be done by the Administrators for most commonly used labels names and drop-down values. Use the following API Request to create the Common Master types.
API Details
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "ServiceName": "ADM_CreateOrUpdateCommonMaster", "objCommonParameters": { "_ProxyDetails": { "ProxyID": 0, "ReturnType": "JSON", "APIKey": "XXXXXXXXXXXXXXXXXXXXXX", "AuthType": "APIKEY" }, "objCommonMasterDetail": { "DomainName": "Symphony summit", "CommonMasterDetails": [ { "MaterType": "State", "MasterValue": "Victoria", "Active": 1 }, { "MaterType": "State", "MasterValue": "Tasmania", "Active": 1, "ParentMasterType": "Country", "ParentValue": "Australia" }, { "CM_ID": "147491", "MaterType": "State", "MasterValue": "Queensland_updated", "Active": 1 }, { "CM_ID": "147492", "MaterType": "State", "MasterValue": "NewSouthWales_Updated", "Active": 1, "ParentMasterType": "Country", "ParentValue": "Australia_Updated" } ] } } } |
Anchor | ||||
---|---|---|---|---|
|
Parameter Name | Type | Mandatory | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CM_ID |
|
| Unique identification number of the Common Master. This parameter is mandatory while updating a specific Master Type. | ||||||||||||
MaterType |
|
| Name of the MasterType. | ||||||||||||
MasterValue |
|
| Value of the specified MasterType. | ||||||||||||
ParentMasterType |
|
| Name of the Parent MasterType. | ||||||||||||
ParentValue |
|
| Value of the specified ParentMasterType. | ||||||||||||
Active |
|
| Status of the configuration. Specify the value as 1 to make the configuration active or 0 to make the configuration inactive. |
Note | ||
---|---|---|
| ||
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "Errors": "", "Message": "", "Output": "", "TokenID": "A04DE77753528619E19F4E23CC818AAE77BB3A86982166BAEFBA46FFDBBACC8AA50B84E66FBEAA69E4C6B79AE6B7BB929DA63DA5FACF2415E6716AE2EC F053C7BDD4527E24882FD6D6147312601897DF4D7E7DC4E802E8DED56EFBB8404CB47A0AEC2A3DCBFEF888C9C4EB7082A9AC2F049CAD9CE1AC0ACC61B57F1663D247AF B20D1759EC26AE4EA9EE6808F03EFAD3", "OrgID": 0, "OutputObject": { "CommonMasterDetails": [ { "CM_ID": "17642", "MasterType": "state", "MasterValue": "GOAA", "ParentMasterType": null, "ParentValue": null, "Parent_CM_ID": null, "Action": "Inserted" }, { "CM_ID": "17641", "MasterType": "state", "MasterValue": "GOA002", "ParentMasterType": "Country", "ParentValue": "India1", "Parent_CM_ID": "4870", "Action": "Updated" } ] }, "OutputID": 0, "Input": null } |
AnchorCreating or Updating the User Master Creating or Updating the User Master
Creating or Updating the User Master
Creating or Updating the User Master | |
Creating or Updating the User Master |
Use this API you can create an User with details such as user level, designation, manager, contact number, User Type allocation, and so on .
API Details
Code Block | theme | DJango|||||
---|---|---|---|---|---|---|
| ||||||
{ "ServiceName": "ADM_CreateorUpdateUser", "objCommonParameters": { "_ProxyDetails": { "APIKey": "XXXXXXXXXXXXXXXXXXXXXXXX", "AuthType": "APIKEY", "ProxyID": 0, "ReturnType": "JSON", "orgid": 1 }, "UniqueField": "EmpId", "Users": [ { "UserName": "john", "EmployeeId": "S1234", "Password": "XXXXXXXX", "Login_ID": "john@xyz.com", "DomainName": "xyz", "EmailId": "john@xyz.com", "ManagerEmailId": "ryan@xyz.com", "ManagerEmployeeID": "S123", "Manager_NT_UID": "SUS1233455", "MobileNumber": "9123456780", "NT_UID": "", "RoleTemplate": "Super Admin", "Designation": "Lead", "Joindate": "05/02/2020", "Address": "Gollastreet,Mumbai", "Location": "mumbai-911", "City": "Vijayawada", "ContactNumber": "+81-0944022338789", "State": "Maharastra", "Country": "India", "Customer": "SUMMIT", "TimeZone": "(UTC - 02:00) FNT - Fernando de Noronha Time", "UserLevel": "level5", "ZipCode": "534235", "LoginType": "FORM", "APIKeyExpiry": "2020-08-21", "Remarks": "This is created by me", "UserType": "Analyst", "AlternateMailID1": "test11@xyz.in", "AlternateMailID2": "test12@xyz.in", "AlternateMailID3": "test13@xyz.in", "AlternateMailID4": "test14@xyz.in", "SortOrder": "0", "IsLocked": "0", "checkboxcustomattributes": [ { "Attr_Name": "Multiple Unit", "Attr_Value": "0100001 - Board Of Directors", "Group_Name": "Default Group" }, { "Attr_Name": "manual chk", "Attr_Value": "B", "Group_Name": "Default Group" } ], "CustomAttributes": [ { "Attr_Name": "Drop", "Attr_Value": "bangalore", "Group_Name": "Default Group" }, { "Attr_Name": "User Text Area", "Attr_Value": "Yes", "Group_Name": "Default Group" } ] } ] } } |
Anchor | ||||
---|---|---|---|---|
|
Parameter Name | Type | Mandatory | Description | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
UniqueField |
|
| Unique Field value can be one of the following:
|
| ||||||||||||
Users |
|
| Under Users array, you can add multiple Users. | |||||||||||||
UserName |
|
| Name of the User. | |||||||||||||
EmployeeId |
| Employee identification number of the User. | ||||||||||||||
Password |
|
| Enter the password of your choice. | This parameter is mandatory when the LoginType parameter value is entered as Form Login. | ||||||||||||
Login_ID |
|
| Configured login ID of the User for Form Login. | This parameter is mandatory when the LoginType parameter value is entered as Form Login. | ||||||||||||
DomainName |
|
| Domain name of the User. | |||||||||||||
EmailId |
|
| E-mail ID of the User. | |||||||||||||
ManagerEmailId |
|
| E-mail ID of the User's Manager. |
| ||||||||||||
ManagerEmployeeID |
|
| Employee identification number of the User's Manager. | |||||||||||||
Manager_NT_UID |
|
| NT login ID of the User's Manager. | |||||||||||||
MobileNumber |
|
| Mobile number of the User. | |||||||||||||
NT_UID |
|
| NT login ID of the User to log in. | This parameter is mandatory when the LoginType parameter value is entered as NT Login. | ||||||||||||
RoleTemplate |
|
| Assign Role Templates to the User by clicking the Select check box next to the Role Template name. Based on this mapping, the User is able to view the module menu options, drop-down list options, and edit the page details. | |||||||||||||
Designation |
|
| Designation of the User. | |||||||||||||
Joindate |
|
| Joining date of the User. | |||||||||||||
Address |
|
| Address of the User. | |||||||||||||
Location |
|
| Specify the location.. The user can view the list of incidents logged by other users who are mapped to the location specified in this parameter. The user can specify multiple locations. | |||||||||||||
City |
|
| City name of the User. | |||||||||||||
ContactNumber |
|
| Contact number of the User. This can be the User's landline number or a desk extension. | |||||||||||||
State |
|
| State name of the User. | |||||||||||||
Country |
|
| Country name of the User. | |||||||||||||
Customer |
|
| Specify the customer name. The user can view the list of incidents logged by other users who are mapped to the customer specified in this parameter. The user can select multiple customers. | |||||||||||||
TimeZone |
|
| Time zone for the User. | |||||||||||||
UserLevel |
|
| Grade of the User in the Organization. | |||||||||||||
ZipCode |
|
| Zip code of the City. | |||||||||||||
LoginType |
|
| Login type of the User. | The value can be one of the following:
| ||||||||||||
APIKeyExpiry |
|
| Specify a future date for the expiry of the API Key. | If no value is specified, the API considers the expiry date as 1 year from the date of user creation. | ||||||||||||
Remarks |
|
| Additional information about the User. | |||||||||||||
UserType |
|
| Type of the User. | Example: End User, Analyst, or Administrator. | ||||||||||||
AlternateMailID |
|
| Enter alternative E-mail IDs for the user. You can configure a maximum of four additional E-mail IDs. When an Incident is logged for the User, an E-mail is sent to the configured primary or alternate E-mail ids. |
| ||||||||||||
SortOrder |
|
| The order in which User names gets sorted or displayed. | |||||||||||||
IsLocked |
|
| Is the Account of the User locked? | The value is either 0 or 1. | ||||||||||||
checkboxcustomattributes |
|
| Custom attributes that can be specified and shown in as a check box in the Application. These Custom Fields include the following parameters:
| |||||||||||||
CustomAttributes |
|
| Custom attributes for a specified User. These Custom Fields include the following parameters:
|
Code Block | theme | Midnight|||
---|---|---|---|---|
| ||||
{ "Errors": "", "Input": null, "Message": "0 Users Updated Succesfully.1 Users created Succesfully.", "OrgID": 0, "Output": "0 Users Updated Succesfully.1 Users created Succesfully.", "OutputID": 0, "OutputObject": "{\"Inserted_Records\":[{\"Id\":\"428270\",\"UniqueId\":\"manik123\",\"APIKey\":\"\"}],\"Updated_Records\":null}", "TokenID": "3607726A11AC867B6030FBF353413C8B6617A8C76EA89B5522C5E25B7A4FE4C460C265BE170C89A5C2C4D5B57FCB1243988FB1BE7D600AE139467DC5211BB4552D0 E77EFCA76EE99FB70396D63B11ABB499C2B301806BA38E545A51DC9A69E91D107C610CAF64CC53A6EB0F3D4FCB820D3A5E2CA139D41747555689F54D16AA87C6AEFCD14A1AC8F D8671DD2809A9F2A8A9F70929BB55124CE9700981740A4208061449C" } |
Response Parameters
Parameter Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Inserted_Records |
| Displays the list of records created or updated. | ||||||
Id |
| Unique Identification number of the user | ||||||
UniqueId |
| Based on the UniqueField Request parameter, the value is displayed. The value can be the Employee ID or the Email ID or the login ID of the User. | ||||||
APIKey |
| Displays the allocated API Key. This value gets created if the Login Type is API Key. | ||||||
Updated_Records |
| Displays the number of updated records. |
Errors Messages
All successful API Responses return with the HTTP Status code 200 OK. This document contains some of the errors that APIs return in Response.
Error | Description |
---|---|
Invalid | API Request is failed to fetch due to an invalid value. The value can be a Parameter value, a Header value, or a Property value. |
Specify the value | API Request is missing with the mandatory Parameter value. |
APIKey and AuthType | API Request is failed due to missing values of either APIKey or AuthType. |
Invalid or expired API Key | Specified API Key is invalid or expired. Generate a new API Key or extend the API expiry date. For more information, see API Authentication. |
Note | ||
---|---|---|
| ||
Standard HTTP status codes are displayed to indicate whether the API request is executed successfully or not. Following are the standards response codes:
|