Petition Details
- URI: api/v8.6/item/update/{id}/{itemType}/{userId}
- Type: POST
-
Required headings:
- content-type: application/json
- Authorization: TOKEN
Parameters
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Text | Yes | Case ID to be consulted |
itemType | Number | Yes | Type of case to be created. The options are: 1. Incident 2. Problem 3. Change |
userId | Number | Yes | ID of the user who queries the case. |
Additionally, it is possible to send the values you want to edit as parameters in the body of the request. These values correspond to the same ones available in the creation process, however, there are some that are not editable, for example, the author’s id.
Body of the petition
The request consists of a field-value json array with possible parameters as required. Example:
[
{"Field":"SpecialistId","Value":####},
{"Field":"ImpactId","Value":#},
{"Field":"Description","Value":"New description"}
]
Answer
As an answer, a json object is obtained, with the following information:
[
{
"Field": "itemId",
"Value": "4158"
},
{
"Field": "qs",
"Value": "?64B24DED26791E23A72364E9AF0E0430E93E2CF2F6D66AA4CB23CAAF7D8F"
},
{
"Field": "composedItemId", "Value": "IM-55175-2-19537"
},
{
"Field": "isClosed",
"Value": "False"
},
{
"Field": "result",
"Value": "True"
}
]
Error messages
Code | HTTP status | Error Message |
---|---|---|
400 | BadRequest | InvalidToken |
400 | BadRequest | InvalidUserId |
400 | BadRequest | InvalidItemId |
400 | BadRequest | InvalidItemType |
400 | BadRequest | InvalidComposedItemId |
400 | BadRequest | InvalidCaseData |
400 | BadRequest | InvalidAuthorId |
400 | BadRequest | InvalidCategory |
400 | BadRequest | InvalidCompany |
400 | BadRequest | InvalidDescription |
400 | BadRequest | InvalidGroup |
400 | BadRequest | InvalidItemType |
400 | BadRequest | InvalidStateConfiguraton |
400 | BadRequest | InvalidRegistryType |
400 | BadRequest | InvalidService |
400 | BadRequest | InvalidSla |
400 | BadRequest | InvalidUrgencyId |
401 | Unauthorized | UnauthorizedDescriptionModification |
401 | Unauthorized | UnauthorizedIncidentModification |
401 | Unauthorized | UnauthorizedChangeModification |
401 | Unauthorized | UnauthorizedProblemModification |
401 | Unauthorized | UnauthorizedServicecallModification |
404 | NotFound | InvalidItemId |