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:
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
Creating or Updating the Common Master
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
Request Parameters
Parameter Name | Type | Mandatory | Description |
---|---|---|---|
CM_ID | STRING | TRUE | Unique identification number of the Common Master. This parameter is mandatory while updating a specific Master Type. |
MaterType | STRING | TRUE | Name of the MasterType. |
MasterValue | STRING | TRUE | Value of the specified MasterType. |
ParentMasterType | STRING | TRUE | Name of the Parent MasterType. |
ParentValue | STRING | TRUE | Value of the specified ParentMasterType. |
Active | STRING | TRUE | Status of the configuration. Specify the value as 1 to make the configuration active or 0 to make the configuration inactive. |
Note:
- The Domains of the Master data and Parent data must be the same.
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
Request Parameters
Parameter Name | Type | Mandatory | Description | Notes |
---|---|---|---|---|
UniqueField | STRING | TRUE | Unique Field value can be one of the following:
|
|
Users | ARRAY | TRUE | Under Users array, you can add multiple Users. | |
UserName | STRING | TRUE | Name of the User. | |
EmployeeId | STRING | Employee identification number of the User. | ||
Password | STRING | TRUE | Enter the password of your choice. | This parameter is mandatory when the LoginType parameter value is entered as Form Login. |
Login_ID | STRING | TRUE | Configured login ID of the User for Form Login. | This parameter is mandatory when the LoginType parameter value is entered as Form Login. |
DomainName | STRING | TRUE | Domain name of the User. | |
EmailId | STRING | FALSE | E-mail ID of the User. | |
ManagerEmailId | STRING | FALSE | E-mail ID of the User's Manager. |
|
ManagerEmployeeID | STRING | FALSE | Employee identification number of the User's Manager. | |
Manager_NT_UID | STRING | FALSE | NT login ID of the User's Manager. | |
MobileNumber | STRING | FALSE | Mobile number of the User. | |
NT_UID | STRING | TRUE | NT login ID of the User to log in. | This parameter is mandatory when the LoginType parameter value is entered as NT Login. |
RoleTemplate | STRING | TRUE | 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 | STRING | FALSE | Designation of the User. | |
Joindate | STRING | FALSE | Joining date of the User. | |
Address | STRING | FALSE | Address of the User. | |
Location | STRING | FALSE | 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 | STRING | FALSE | City name of the User. | |
ContactNumber | STRING | FALSE | Contact number of the User. This can be the User's landline number or a desk extension. | |
State | STRING | FALSE | State name of the User. | |
Country | STRING | FALSE | Country name of the User. | |
Customer | STRING | FALSE | 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 | STRING | TRUE | Time zone for the User. | |
UserLevel | STRING | FALSE | Grade of the User in the Organization. | |
ZipCode | STRING | FALSE | Zip code of the City. | |
LoginType | STRING | TRUE | Login type of the User. | The value can be one of the following:
|
APIKeyExpiry | STRING | FALSE | 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 | STRING | FALSE | Additional information about the User. | |
UserType | STRING | FALSE | Type of the User. | Example: End User, Analyst, or Administrator. |
AlternateMailID | STRING | FALSE | 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 | BOOLEAN | FALSE | The order in which User names gets sorted or displayed. | |
IsLocked | STRING | FALSE | Is the Account of the User locked? | The value is either 0 or 1. |
checkboxcustomattributes | ARRAY | TRUE | Custom attributes that can be specified and shown in as a check box in the Application. These Custom Fields include the following parameters:
| |
CustomAttributes | ARAY | TRUE | Custom attributes for a specified User. These Custom Fields include the following parameters:
|
Response Parameters
Parameter Name | Type | Description |
---|---|---|
Inserted_Records | ARRAY | Displays the list of records created or updated. |
Id | STRING | Unique Identification number of the user |
UniqueId | STRING | 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 | STRING | Displays the allocated API Key. This value gets created if the Login Type is API Key. |
Updated_Records | STRING | 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:
- Successful Responses (200-299)
- Client Errors (400-499)
- Server Errors (500-599)