Endpoint
/api/v2/tenants/{tenantId}/problems/{problemId}/close
Path Parameters
tenantIdstring
problemIdstring
notesstring
Additional information to add to a problem.
reasonstring
Reason for closing the problem. This is mandatory only if the option Enable reasons to change status Close is enabled for problem in service desk settings (example steps below).
{
"notes": "Able to receive device monitoring statistics",
"reason": "Issue fixed"
}
Responses
OK
alertIdsarray
allowedStatusarray
Child Parameters
- allowedStatus.id
- allowedStatus.name
- allowedStatus.reasonsDefined
- allowedStatus.reasonsEnabled
applicationstring
Application from which the problem is generated.
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
attachmentsarray
Child Parameters
- attachments.contentURL
- attachments.createdDate
- attachments.file
- attachments.id
- attachments.name
ccstring
Cc email.
channelIdinteger
clientobject
Child Parameters
- client.activated
- client.createdTime
- client.id
- client.name
- client.uniqueId
- client.updatedTime
closedDatestring
closedSummarystring
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
Description of the problem.
estimatedHoursinteger
Estimated time for resolving a problem. For example, a user estimates 3 hours for completion of a problem, the user provides value as "estimatedHours": "3".
estimatedMinutesinteger
Estimated time for resolving a problem. For example, a user estimates 45 minutes for completion of a task, then user provides value as "estimatedMinutes": "45".
extTicketIdstring
Attach an external ticket ID to the problem.
idstring
knowledgeArticleIdsarray
(Optional) Attach knowledge base articles related to the problem 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
knownIssueboolean
notesstring
oldPrioritystring
oldStatusstring
prioritystring
Priority of the problem.
priorityUpdatedByobject
Child Parameters
- priorityUpdatedBy.email
- priorityUpdatedBy.firstName
- priorityUpdatedBy.id
- priorityUpdatedBy.lastName
- priorityUpdatedBy.loginName
- priorityUpdatedBy.phoneNumber
priorityUpdatedDatestring
reOpenCountinteger
reasonstring
requesterobject
Child Parameters
- requester.email
- requester.firstName
- requester.id
- requester.lastName
- requester.loginName
- requester.phoneNumber
resolvedDatestring
resourcesarray
Child Parameters
- resources.aliasName
- resources.hostName
- resources.id
- resources.metaData
- resources.name
- resources.resourceName
- resources.resourceType
- resources.type
rootCausestring
Root cause of the problem.
slaDetailsobject
Child Parameters
- slaDetails.resolutionBreach
- slaDetails.resolutionBreachDate
- slaDetails.resolutionTime
- slaDetails.responseBreach
- slaDetails.responseBreachDate
- slaDetails.responseTime
- slaDetails.slaPolicy
sourcestring
statusstring
Status of problem. Follow the steps to update the status of problem: 1. Use the get problem API to check: 2. Status flow transitions of problem.The status flows are defined in the field allowedStatus. Example: "name" : "Update" 3. Option to provide reasons to change the status is enabled."reasonsEnabled" : "true" indicates, reason is mandatory while changing the status."reasonsEnabled" : "false" indicates reason is optional. 4. If status change reasons are defined, use the get status change reasons to get the list of reasons. Provide the reasons configured in status "Update".
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
subjectstring
Subject of the problem.
suspendEndDatestring
tagsstring
ticketArisedTimestring
timeSpentinteger
updatedDatestring
workaroundstring
Temporary solution to solve the problem.
{
"allowedStatus": [],
"assignedUser": {
"email": "sample@gmail.com",
"firstName": "Brocade",
"id": "USR0000000014",
"lastName": "Lab",
"loginName": "brocadeLab@organization.com",
"phoneNumber": "8096250653"
},
"assigneeGroup": {
"description": "All Brocade Lab Users group",
"id": 7,
"name": "Brocade Lab Users"
},
"category": {
"id": 10,
"name": "Critical Level"
},
"cc": "sample@gmail.com",
"client": {
"activated": true,
"id": 8,
"name": "Brocade Lab",
"uniqueId": "client_8"
},
"closedDate": "2016-11-25T10:01:39+0000",
"closedSummary": "All device monitoring statistics are received",
"createdDate": "2016-07-25T14:58:30+0000",
"createdUser": {
"email": "john.smith@gmail.com",
"firstName": "John",
"lastName": "Smith",
"loginName": "john.smith"
},
"customFields": [
{
"classCode": "PROBLEM",
"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": "PROBLEM",
"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": "PROBLEM",
"description": "service provider",
"displayLabel": "for service pro 3",
"editable": true,
"fieldType": "TYPE_TEXT",
"id": "UDF0000003780",
"mandatory": false,
"name": "for_service_pro_3_3780"
}
],
"description": "Monitoring Alerts Problems Report - 104 ,$alert.status ",
"extTicketId": "000042526342",
"id": "PRB0000000114",
"notes": "Able to receive device monitoring statistics",
"oldPriority": "Urgent",
"oldStatus": "Open",
"priority": "Normal",
"priorityUpdatedBy": {
"email": "sample@gmail.com",
"firstName": "SP",
"id": "USR0000000018",
"lastName": "Admin",
"loginName": "superadmin"
},
"priorityUpdatedDate": "2016-11-25T09:59:51+0000",
"reOpenCount": 0,
"reason": "Pr Close",
"requester": {
"email": "john.smith@gmail.com",
"firstName": "John",
"lastName": "Smith",
"loginName": "john.smith"
},
"resources": [
{
"id": "200efca6-a75a-44e3-9360-1ff17a698e2e",
"name": "Local Setup",
"type": "SYNTHETIC"
},
{
"id": "DGP-420a80f4-5fba-46d5-a1c1-20e2df4a326a",
"name": "OPSRAMP-SJ",
"type": "DEVICE_GROUP"
},
{
"id": "SGP-c2af3866-fc89-47dd-b83f-bcc8df0b2a0a",
"name": "VTH Services",
"type": "SERVICE"
}
],
"slaDetails": {
"resolutionBreach": false,
"resolutionBreachDate": "",
"resolutionTime": 10364,
"responseBreach": false,
"responseBreachDate": "",
"responseTime": 10204
},
"source": "INTEGRATION",
"sourcePolicyType": "INTEGRATION",
"status": "Closed",
"statusFlow": [
{
"createdDate": "2016-07-25T14:58:31+0000",
"status": "New",
"timeSpent": 10204,
"updatedBy": {
"email": "john.smith@gmail.com",
"firstName": "John",
"lastName": "Smith",
"loginName": "john.smith"
}
},
{
"createdDate": "2016-07-25T17:48:35+0000",
"status": "Pending",
"timeSpent": 10599024,
"updatedBy": {
"email": "sample@gmail.com",
"firstName": "john",
"lastName": "smith",
"loginName": "john.smith",
"phoneNumber": "998-559-7783"
}
},
{
"createdDate": "2016-11-25T09:58:59+0000",
"reason": "Open Problem",
"status": "Open",
"timeSpent": 160,
"updatedBy": {
"email": "sample@gmail.com",
"firstName": "SP",
"id": "USR0000000018",
"lastName": "Admin",
"loginName": "superadmin"
}
},
{
"createdDate": "2016-11-25T10:01:39+0000",
"notes": "Able to receive device monitoring statistics",
"reason": "Issue fixed",
"status": "Closed",
"updatedBy": {
"email": "john.bolt@gmail.com",
"firstName": "John",
"lastName": "Bolt",
"loginName": "john.bolt"
}
}
],
"statusUpdatedBy": {
"email": "john.bolt@gmail.com",
"firstName": "John",
"lastName": "Bolt",
"loginName": "john.bolt"
},
"statusUpdatedDate": "2016-11-25T10:01:39+0000",
"subCategory": {
"id": 13,
"name": "Low"
},
"subject": "Device Monitoring statistics : alert- 104 ",
"ticketArisedTime": "",
"updatedDate": "2016-11-25T10:01:39+0000"
}