Provide a REST API endpoint to update an existing Tenant/Instance master record within the Incident Management (IM) module. The API enables modification of Tenant attributes and associated child entities, such as Instance Details, Instance Modules, and Email Notification configurations, through a single update operation.
Endpoint
This endpoint updates an existing Tenant/Instance record identified by its unique identifier (recordId). It allows authorized users and integration systems to change tenant configuration settings, module configurations, and notification preferences.
PUT /API/v1/Master/IM/Instance/{recordId}
Endpoint Path Parameters
Parameter Name | Data Type | Required | Description | Example |
|---|---|---|---|---|
moduleCode | string | Yes | Module code containing the master entity. Fixed value: | IM |
masterName | string | Yes | Master entity name. Fixed value: | Instance |
recordId | integer/string | Yes | Unique identifier of the Tenant/Instance record to update. | 1001 |
Note: Before updating Tenant record, system retrieves its update metadata to review required fields, supported fields, payload structure, validation constraints, and applicable endpoint.
GET /API/v1/Master/IM/Instance/metadata?sections=update,children.
Sample Request
The sample request demonstrates how to update an existing Tenant/Instance record using its unique identifier. The request includes tenant configuration details and associated child entity information that you change as part of the update operation.
{
"Active": true,
"Sort_Order": 1,
"Group": 0,
"Description": "Information Technology-11 desc",
"Text": "Information Technology-11",
"children": {
"instance_detail": [
{
"Is_Active": true,
"Is_Allow_Analyst_EditDescription": false,
"Is_Allow_Analyst_EditSymptom": true,
"Is_Allow_Workgroup_Owner_Edit_Priority": true,
"Email_Notification": 1,
"Is_Enable_Additional_Information_Tab": true,
"Is_Enable_Bulk_Update_Icon_on_List_Page": true,
"Is_Enable_Checklist_Tab": true,
"Is_Enable_Capture_Closure_Category": true,
"Is_Enable_Display_End_User_Followup_Details": true,
"Is_Enable_Major_Incident_Option": true,
"Is_Enable_Vendor_Information_Tab": true,
"Is_Enable_Service_Automation_Tab": true,
"Is_Enable_Troubleshooting_Tab": true,
"Is_Enable_Conference_Call": true,
"Is_Enable_First_Call_Resolution_Option": true,
"Auto_Assignment_Type": "CO",
"Is_Enable_Change_Caller_Icon": true,
"Is_Enable_Auto_Assignment_Incidents": true,
"Is_Enable_Linking_KBs_Resolved_Incidents": true,
"Is_Minimized_Knowledge_Base_Popup_Page": true,
"Is_Enable_Enable_Last_5_Incidents_Popup": true,
"Is_Enable_Auto_Completion_Logging Incidents": true,
"Is_Allow_Creation_Incident_Global_Users": true,
"Module": "IM",
"Incident_Closing_Mode": "Manual",
"Is_Enable_View_Other_Workgroup_Incidents": true
}
],
"instance_modules": [
{
"Is_Config_Complete": false,
"Is_Enabled": true,
"Module": "IM"
}
],
"instance_im_email_notification_options": [
{
"Enabled": false,
"Mail_To_Caller": false,
"Mail_To_CC": false,
"Mail_To_Workgroup": false,
"Module": "IM",
"Status": "New"
}
]
}
}
Request Body Fields
Field Name | Data Type | Description |
|---|---|---|
Active | Boolean | Indicates whether the Tenant/Instance is active. |
Sort_Order | Integer | Defines the display or processing order of the Tenant/Instance. |
Group | Integer | Represents the group classification associated with the Tenant/Instance. |
Description | String | Detailed description of the Tenant/Instance. |
Text | String | Name or display name of the Tenant/Instance. |
children.instance_detail | Array | Contains Incident Management configuration settings for the Tenant/Instance. |
children.instance_modules | Array | Contains module enablement and configuration details associated with the Tenant/Instance. |
children.instance_im_email_notification_options | Array | Contains email notification settings for Incident Management events and statuses. |
Child Entity: instance_detail
Field Name | Data Type | Description |
|---|---|---|
Is_Active | Boolean | Indicates whether the instance configuration is active. |
Is_Allow_Analyst_EditDescription | Boolean | Allows analysts to change incident descriptions. |
Is_Allow_Analyst_EditSymptom | Boolean | Allows analysts to change incident symptoms. |
Is_Allow_Workgroup_Owner_Edit_Priority | Boolean | Allows Workgroup Owners to change incident priorities. |
Email_Notification | Integer | Email notification configuration identifier. |
Is_Enable_Additional_Information_Tab | Boolean | Enables the Additional Information tab. |
Is_Enable_Bulk_Update_Icon_on_List_Page | Boolean | Enables bulk update functionality on list pages. |
Is_Enable_Checklist_Tab | Boolean | Enables the Checklist tab. |
Is_Enable_Capture_Closure_Category | Boolean | Allows users to capture closure category information. |
Is_Enable_Display_End_User_Followup_Details | Boolean | Displays follow-up details to end users. |
Is_Enable_Major_Incident_Option | Boolean | Enables Major Incident functionality. |
Is_Enable_Vendor_Information_Tab | Boolean | Enables the Vendor Information tab. |
Is_Enable_Service_Automation_Tab | Boolean | Enables the Service Automation tab. |
Is_Enable_Troubleshooting_Tab | Boolean | Enables the Troubleshooting tab. |
Is_Enable_Conference_Call | Boolean | Enables conference call functionality. |
Is_Enable_First_Call_Resolution_Option | Boolean | Enables the First Call Resolution option. |
Auto_Assignment_Type | String | Defines the incident auto-assignment method. |
Is_Enable_Change_Caller_Icon | Boolean | Enables the Change Caller option. |
Is_Enable_Auto_Assignment_Incidents | Boolean | Enables automatic assignment of incidents. |
Is_Enable_Linking_KBs_Resolved_Incidents | Boolean | Allows linking Knowledge Base articles to resolved incidents. |
Is_Minimized_Knowledge_Base_Popup_Page | Boolean | Displays the Knowledge Base popup in minimized mode. |
Is_Enable_Enable_Last_5_Incidents_Popup | Boolean | Displays the last five incidents popup. |
Is_Enable_Auto_Completion_Logging_Incidents | Boolean | Enables auto-completion while logging incidents. |
Is_Allow_Creation_Incident_Global_Users | Boolean | Allows global users to create incidents. |
Module | String | Module associated with the configuration. |
Incident_Closing_Mode | String | Defines the incident closure process. |
Is_Enable_View_Other_Workgroup_Incidents | Boolean | Allows users to view incidents from other Workgroups. |
Child Entity: instance_modules
Field Name | Data Type | Description |
|---|---|---|
Is_Config_Complete | Boolean | Indicates whether module configuration is complete. |
Is_Enabled | Boolean | Indicates whether administrators have enabled the module for the Tenant/Instance. |
Module | String | Module associated with the Tenant/Instance. |
Child Entity: instance_im_email_notification_options
Field Name | Data Type | Description |
|---|---|---|
Enabled | Boolean | Specifies whether administrators enabled the notification rule. |
Mail_To_Caller | Boolean | Sends email notifications to the caller. |
Mail_To_CC | Boolean | Sends email notifications to CC recipients. |
Mail_To_Workgroup | Boolean | Sends email notifications to the associated Workgroup. |
Module | String | Module associated with the notification configuration. |
Status | String | Status for which the notification rule is applicable. |
Sample Response
The response confirms that the Tenant/Instance record was successfully updated. A successful operation returns a confirmation message and the unique identifier of the updated record.
{
"message": "Instance updated successfully.",
"UID": 1001
}
Sample Response Field Details
Field Name | Sample Value | Data Type | Description |
|---|---|---|---|
message |
| String | Confirms that the Tenant/Instance update operation completed successfully. |
UID |
| Integer | Unique identifier of the Tenant/Instance record updated by the request. |
Sample Response Explanation
Response Attribute | Returned Value | Meaning |
|---|---|---|
Response Message |
| Confirms that the system successfully updated the Tenant/Instance record. |
Updated Record Identifier |
| Identifies the Tenant/Instance record affected by the update operation. |
Success Response
HTTP 200 OK
The Tenant/Instance record was successfully updated, and the system saved the submitted changes. The response confirms completion of the update operation and returns the identifier of the updated record.
{
"message": "Instance updated successfully.",
"UID": 1001
}
HTTP 200 Response Details
Field Name | Returned Value | Data Type | Description |
|---|---|---|---|
message |
| String | Confirms the system updated the Tenant/Instance record and saved the submitted changes successfully. |
UID |
| Integer | Identifies the Tenant/Instance record updated. |
A successful request returns HTTP 200 OK. The response confirms that the system successfully updated the Tenant/Instance record with UID 1001.
Error Messages
400 Bad Request
The system cannot process the request because the submitted payload is invalid or does not meet the required validation rules. Review the request body for missing mandatory fields, incorrect data types, or invalid values.
{
"message": "Invalid request payload.",
"errorCode": 400,
"details": "One or more fields failed validation."
}
401 Unauthorized
The system cannot authenticate the request because valid API credentials were not provided or have expired. Ensure you include a valid API key or authentication token in the request.
{
"message": "Unauthorized access.",
"errorCode": 401,
"details": "Valid API credentials are required."
}
403 Forbidden
The authenticated user does not have the required permissions to update Tenant/Instance records. Contact the system administrator to get the required access rights.
{
"message": "You do not have permission to update Tenant/Instance records.",
"errorCode": 403,
"details": "The authenticated user lacks the required privileges to perform this operation."
}
404 Not Found
The specified Tenant/Instance record does not exist or is unavailable in the system. Verify the provided record identifier and ensure the record exists before resubmitting the request.
{
"message": "Tenant/Instance record not found.",
"errorCode": 404,
"details": "No record was found for the specified identifier."
}