Endpoint
/api/v2/tenants/{tenantId}/incidents/{incidentId}/close
Path Parameters
tenantIdstring
incidentIdstring
notesstring
Additional information to add to an incident.
reasonstring
Reason for closing the incident. This is mandatory only if the option Enable reasons to change status Close is enabled for incident in service desk settings (example steps below).
{
"notes": "Able to launch remote consoles on Windows devices",
"reason": "Remote consoles issue solved"
}
Responses
OK
alertIdsarray
allowedStatusarray
Child Parameters
- allowedStatus.id
- allowedStatus.name
- allowedStatus.reasonsDefined
- allowedStatus.reasonsEnabled
assignedUserobject
Child Parameters
- assignedUser.email
- assignedUser.firstName
- assignedUser.id
- assignedUser.lastName
- assignedUser.loginName
- assignedUser.phoneNumber
assigneeGroupobject
Child Parameters
- assigneeGroup.description
- assigneeGroup.id
- assigneeGroup.name
- assigneeGroup.userCount
attachedRequestsarray
Attach service requests to an incident. Use the search service requests to get list of service requests in a client.
Child Parameters
- attachedRequests.id
attachmentsarray
Attach files related to the change request. Convert attachment files to byte stream with base64-encoding. The file size limit of an attachment is 50 MB.
Child Parameters
- attachments.file
- attachments.name
businessImpactobject
Child Parameters
- businessImpact.createdBy
- businessImpact.createdDate
- businessImpact.description
- (Optional) Short summary describing the business impact.
- businessImpact.name
- Business impact name.
- businessImpact.uniqueId
- businessImpact.updatedBy
- businessImpact.updatedDate
categoryobject
Add the change request under a category. Use the get API to get the list of categories.
Child Parameters
- category.id
ccstring
Cc email.
changePlanstring
Description of the change plan.
changeRequestobject
Attach a problem or change request related to the incident. Only a single change request or problem can be attached to an incident.
Child Parameters
- changeRequest.id
changeTypestring
Normal or Emergency depending on the Priority of a change request. For example, create a change type Emergency for change requests that must be processed immediately or if Priority of a request is High.
channelIdstring
clientobject
Child Parameters
- client.activated
- client.createdTime
- client.id
- client.name
- client.uniqueId
- client.updatedTime
closedSummarystring
consolesarray
Child Parameters
- consoles.consoleProtocol
- Console protocol.
- consoles.options
- Console options.
- consoles.type
- Console type
createdDatestring
createdUserobject
Child Parameters
- createdUser.email
- createdUser.firstName
- createdUser.id
- createdUser.lastName
- createdUser.loginName
- createdUser.phoneNumber
customFieldsarray
Child Parameters
- customFields.classCode
- customFields.customField
- customFields.defaultValue
- customFields.description
- customFields.displayLabel
- customFields.editable
- customFields.fieldType
- customFields.id
- customFields.mandatory
- customFields.name
- customFields.options
- customFields.selectedOption
- customFields.value
descriptionstring
Ticket description.
dueDatestring
extTicketIdstring
Attach third party ticket ID.
idstring
knowledgeArticleIdsarray
Attach knowledge base articles related to the change request for further reference. To get a knowledge base article ID: 1. Log into OpsRamp. 2. Click Knowledge Base. 3. Select the required article and then copy the article ID. 4. Provide the article ID in "knowledgeArticleIds" field. Example: "knowledgeArticleIds": 25, 16.
Child Parameters
locationstring
notesstring
oldPrioritystring
oldStatusstring
parentIdstring
Attach incident. Provide the incident ID as an attachment.
plannedEndstring
plannedStartstring
policyobject
Child Parameters
- policy.active
- policy.createdDate
- policy.executionOrder
- policy.id
- policy.name
- policy.policyType
- policy.updatedDate
prioritystring
Ticket priority with supported priority values: Low, Normal, High, Urgent, and Very Low.
priorityUpdatedByobject
Child Parameters
- priorityUpdatedBy.email
- priorityUpdatedBy.firstName
- priorityUpdatedBy.id
- priorityUpdatedBy.lastName
- priorityUpdatedBy.loginName
- priorityUpdatedBy.phoneNumber
priorityUpdatedDatestring
problemobject
Attach a problem or change request related to the incident. Only a single change request or problem can be attached to an incident.
Child Parameters
- problem.id
reOpenCountinteger
requesterobject
Child Parameters
- requester.email
- requester.firstName
- requester.id
- requester.lastName
- requester.loginName
- requester.phoneNumber
resolutionSummarystring
resolveDatestring
resourcesarray
Child Parameters
- resources.aliasName
- resources.hostName
- resources.id
- resources.metaData
- resources.name
- resources.resourceName
- resources.resourceType
- resources.type
rollbackPlanstring
Description of roll back plan.
scheduleobject
Child Parameters
- schedule.endTime
- Schedule end time.
- schedule.pattern
- Recurrence pattern.
- schedule.startTime
- Schedule start time.
- schedule.timezone
- Schedule time zone. The list of timezones are shown below. Example: "timezone": "America/Los_Angeles"
- schedule.type
- Schedule type.
serviceRestoreDatestring
slaDetailsobject
Child Parameters
- slaDetails.resolutionBreach
- slaDetails.resolutionBreachDate
- slaDetails.resolutionTime
- slaDetails.responseBreach
- slaDetails.responseBreachDate
- slaDetails.responseTime
- slaDetails.slaPolicy
sourcestring
sourceEntityTypestring
sourceEntityTypeIdstring
sourcePolicyTypestring
sourcePolicyTypeIdstring
statusstring
statusFlowarray
Child Parameters
- statusFlow.createdDate
- statusFlow.notes
- statusFlow.reason
- statusFlow.status
- statusFlow.timeSpent
- statusFlow.updatedBy
statusUpdatedByobject
Child Parameters
- statusUpdatedBy.email
- statusUpdatedBy.firstName
- statusUpdatedBy.id
- statusUpdatedBy.lastName
- statusUpdatedBy.loginName
- statusUpdatedBy.phoneNumber
statusUpdatedDatestring
subCategoryobject
Add the change request under a sub-category. Use get categories to get the list of sub-categories.
Child Parameters
- subCategory.id
subjectstring
Ticket subject.
tagsstring
testPlanstring
Description of test plan.
ticketArisedTimestring
toEmailstring
Email address of the user. An email notification is sent to the user.
updatedDatestring
workEndstring
workStartstring
{
"alertIds": [],
"allowedStatus": [],
"assignedUser": {
"email": "sample@opsramp.com",
"firstName": "Brocade",
"id": "USR0000000011",
"lastName": "Inc Admin",
"loginName": "brocadeInc@opsramp.com",
"phoneNumber": "8096250653"
},
"assigneeGroup": {
"description": "Brocade Partner Users",
"id": 5,
"name": "Brocade Inc Users"
},
"category": {
"id": 1,
"name": "Urgency"
},
"cc": "sample@opsramp.com",
"client": {
"activated": true,
"id": 8,
"name": "Brocade Lab",
"uniqueId": "client_8"
},
"closedDate": "2016-11-25T08:11:12+0000",
"closedSummary": "closed summary",
"createdDate": "2016-08-10T16:46:24+0000",
"createdUser": {
"email": "sample@opsramp.com",
"firstName": "Ops Admin",
"lastName": " ",
"loginName": "ops_admin_user"
},
"customFields": [
{
"classCode": "INCIDENT",
"description": "all clients and all partners",
"displayLabel": "for service provider",
"editable": true,
"fieldType": "TYPE_TEXT",
"id": "UDF0000003778",
"mandatory": false,
"name": "for_service_provider_3778"
},
{
"classCode": "INCIDENT",
"description": "all partners and clients",
"displayLabel": "for service prov 2",
"editable": true,
"fieldType": "TYPE_CHECKBOX",
"id": "UDF0000003779",
"mandatory": false,
"name": "for_service_prov_2_3779",
"options": [
{
"label": "yes",
"value": "1"
}
]
},
{
"classCode": "INCIDENT",
"description": "service provider",
"displayLabel": "for service pro 3",
"editable": true,
"fieldType": "TYPE_TEXT",
"id": "UDF0000003780",
"mandatory": false,
"name": "for_service_pro_3_3780"
}
],
"description": "Not able to launch consoles on Windows devices in SJ center",
"dueDate": "2016-11-29T08:06:00+0000",
"extTicketId": "000042526342",
"id": "INC0000000247",
"notes": "closed summary",
"oldPriority": "Low",
"oldStatus": "Pending",
"priority": "Normal",
"priorityUpdatedBy": {
"email": "sample@opsramp.com",
"firstName": "SP",
"id": "USR0000000018",
"lastName": "Admin",
"loginName": "superadmin"
},
"priorityUpdatedDate": "2016-11-25T08:08:16+0000",
"reOpenCount": 0,
"reason": "closed",
"requester": {
"email": "sample@opsramp.com",
"firstName": "Ops Admin",
"lastName": " ",
"loginName": "ops_admin_user"
},
"resources": [
{
"id": "ee7e0a88-8d0a-4db7-8bcf-2b3f85fd3011",
"name": "HYDLPT177",
"type": "DEVICE"
},
{
"id": "SGP-c2af3866-fc89-47dd-b83f-bcc8df0b2a0a",
"name": "VTH Services",
"type": "SERVICE"
}
],
"serviceRestoreDate": "2016-11-29T08:06:00+0000",
"slaDetails": {
"resolutionBreach": true,
"resolutionBreachDate": "2016-08-10T13:16:24+0000",
"resolutionTime": 2747615,
"responseBreach": false,
"responseBreachDate": "2016-08-10T12:16:24+0000",
"responseTime": 1847615,
"slaPolicy": {
"businessSchedule": {
"endTime": "20:00:00",
"friday": true,
"monday": true,
"saturday": false,
"startTime": "10:00:00",
"sunday": false,
"thursday": true,
"tuesday": true,
"wednesday": true
},
"id": 6,
"name": "P4_INCIDENT_SLA",
"timezone": {
"code": "GMT",
"id": "12",
"label": "Greenwich Mean Time",
"name": "GMT"
}
}
},
"source": "INTEGRATION",
"sourceEntityType": "INCIDENT",
"sourcePolicyType": "INTEGRATION",
"status": "Closed",
"statusFlow": [
{
"createdDate": "2016-08-10T16:46:25+0000",
"status": "New",
"timeSpent": 6153310,
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "Ops Admin",
"lastName": " ",
"loginName": "ops_admin_user"
}
},
{
"createdDate": "2016-10-20T22:01:35+0000",
"reason": "Waiting for customer inputs",
"status": "Pending",
"timeSpent": 19,
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "john",
"lastName": "smith",
"loginName": "john.smith",
"phoneNumber": "9985597783"
}
},
{
"createdDate": "2016-10-20T22:01:54+0000",
"reason": "Started working on Incident",
"status": "Open",
"timeSpent": 233,
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "john",
"lastName": "smith",
"loginName": "john.smith",
"phoneNumber": "9985597783"
}
},
{
"createdDate": "2016-10-20T22:05:47+0000",
"reason": "Waiting for customer inputs",
"status": "Pending",
"timeSpent": 47,
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "john",
"lastName": "smith",
"loginName": "john.smith",
"phoneNumber": "9985597783"
}
},
{
"createdDate": "2016-10-20T22:06:34+0000",
"reason": "Started working on Incident",
"status": "Open",
"timeSpent": 3060102,
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "john",
"lastName": "smith",
"loginName": "john.smith",
"phoneNumber": "9985597783"
}
},
{
"createdDate": "2016-11-25T08:08:16+0000",
"reason": "Waiting for customer inputs",
"status": "Pending",
"timeSpent": 176,
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "SP",
"id": "USR0000000018",
"lastName": "Admin",
"loginName": "superadmin"
}
},
{
"createdDate": "2016-11-25T08:11:12+0000",
"notes": "closed summary",
"reason": "Issue is fixed",
"status": "Closed",
"updatedBy": {
"email": "sample@opsramp.com",
"firstName": "Ops Admin",
"lastName": " ",
"loginName": "ops_admin_user"
}
}
],
"statusUpdatedBy": {
"email": "sample@opsramp.com",
"firstName": "Ops Admin",
"lastName": " ",
"loginName": "ops_admin_user"
},
"statusUpdatedDate": "2016-11-25T08:11:12+0000",
"subCategory": {
"id": 4,
"name": "P1"
},
"subject": "Remote console issue on Windows devices",
"ticketArisedTime": "",
"toEmail": "sam@opsramp.com",
"updatedDate": "2016-11-25T08:11:12+0000"
}