PATCH api/incident/{IncidentID}
This method amends an incident
Error messages
- 400/BadRequest - An Incident cannot be saved without a status.
- 400/BadRequest - An Incident cannot be saved without being able to determine the service level.
- 400/BadRequest - An Incident cannot be saved without a symptom.
- 400/BadRequest - An Incident cannot be saved without a site.
- 400/BadRequest - An Incident cannot be saved for this site.
- 400/BadRequest - No parameters provided.
- 400/BadRequest - A category cannot be specified. The company is configured to accept priorities - Remove categories from the body text.
- 400/BadRequest - A priority cannot be specified. The company is configured to accept categories - Remove priority from the body text.
- 400/BadRequest - The specified resolution does not match the incident type.
- 400/BadRequest - This method cannot ammend WLR3 incidents.
- 404/NotFound - Incident not found.
- 404/NotFound - The specified service level does not exist.
- 404/NotFound - The specified incident type does not exist.
- 404/NotFound - The specified symptom does not exist for this incident type.
- 404/NotFound - The specified category does not exist for this incident type.
- 404/NotFound - The specified priority flag does not exist.
- 404/NotFound - The specified status does not exist.
- 404/NotFound - The specified resolution does not exist.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
IncidentID | The ID of the incident to amend. | integer |
Required |
Body Parameters
IncidentModifyName | Description | Type | Additional information |
---|---|---|---|
ResolutionID | What type of resolution was found? | integer |
None. |
StatusID | The ID of the incident's current status | integer |
None. |
IncidentTypeID | A type descriptor for the incident | integer |
None. |
SymptomID | The kind of problems had | integer |
None. |
CategoryID | A category descriptor for the incident | integer |
None. |
Summary | An overview of the incident | string |
None. |
Notes | Any miscellaneous notes regarding the incident | string |
None. |
Priority | The importance of the incident | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ResolutionID": 1, "StatusID": 1, "IncidentTypeID": 1, "SymptomID": 1, "CategoryID": 1, "Summary": "sample string 1", "Notes": "sample string 2", "Priority": 1 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |