Changes the attributes of an existing Issue object

patch/data-services/v1beta1/issues/{id}

To snooze an Issue, this API should get a request with body {snoozedFor: timeperiod}. Currently, the allowed time-period for snoozing can be a day, a week, a month or infinite. Hence, the values for snoozedFor should be from this set {"DAY", "WEEK", "MONTH", "INFINITE", "NONE"}. "NONE" corresponds to unsnoozing a snoozed issue. When the Issue is unsnoozed, the snoozed_until is set to zero timestamp. If any other value is received, HTTP 422 may be returned. Also, no other parameters will be accepted in the body. The caller may get HTTP 422.

Securitybearer
Request
path Parameters
id
required
string <uuid>

The UUID of the issue

Request Body schema: application/merge-patch+json
required
generation
required
string

A monotonically increasing value incremented every time the resource is updated

snoozedFor
required
string
Enum: "NONE" "DAY" "WEEK" "MONTH" "INFINITE"
Responses
200

Details of the issue with the given Id

400

Bad/Malformed request

401

Unauthenticated request

403

Unauthorized request

404

Issue with the given Id does not exist

405

Method not supported

412

Precondition check failed

422

Unprocessable input request

500

Internal server error

503

Service unavailable

Request samples
application/merge-patch+json
{
  • "generation": "string",
  • "snoozedFor": "NONE"
}
Response samples
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerId": "string",
  • "generation": 0,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "resourceUri": "string",
  • "type": "string",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "body": "string",
  • "category": "string",
  • "clearedAt": "2019-08-24T14:15:22Z",
  • "groups": [
    ],
  • "issueType": "string",
  • "lastOccurredAt": "2019-08-24T14:15:22Z",
  • "occurrenceCount": 0,
  • "recommendation": "string",
  • "relatedResources": [
    ],
  • "services": [
    ],
  • "severity": "string",
  • "snoozed": true,
  • "snoozedBy": "string",
  • "snoozedFor": "NONE",
  • "snoozedUntil": "2019-08-24T14:15:22Z",
  • "sourceResourceId": "string",
  • "sourceResourceType": "string",
  • "state": "string"
}