Petition Details
- URL: api/v8.6/item/{id}/{itemType}/tasks
- Type: GET
-
Required headings:
- content-type: application/json
- Authorization: TOKEN
Parameters
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Text | Yes | Case ID to consult. |
ItemType | Number | Yes | Type of case to be created. The options are: 1. Incident 2. Problem 3. Change 4. Service Requirement |
Answer
In response, it will return a json object, with the following information.
[
{
"AuthorId": 0,
"AuthorName": null,
"Behavior": null,
"CaseType": 0,
"Description": null,
"Duration": null,
"EndDate": "/Date(1577396831300-0500)/",
"EndDateReal": null,
"GroupId": 7,
"GroupName": "Mesa de Servicio Nivel 1",
"Id": 661,
"IdByProject": null,
"IdCategory": null,
"Name": "CHG-26545-1-322-1",
"ProjectId": 0,
"ProjectName": null,
"ReasonId": null,
"ReasonName": null,
"ResponsableId": 3,
"Result": null,
"StartDate": "/Date(1577396231303-0500)/",
"StartDateReal": null,
"StatusId": 30,
"StatusName": "Registrada",
"TypeId": 0,
"UserName": "Especialista TI"
},
{
"AuthorId": 0,
"AuthorName": null,
"Behavior": null,
"CaseType": 0,
"Description": null,
"Duration": null,
"EndDate": "/Date(1577397638567-0500)/",
"EndDateReal": null,
"GroupId": 7,
"GroupName": "Mesa de Servicio Nivel 1",
"Id": 698,
"IdByProject": null,
"IdCategory": null,
"Name": "CHG-26545-1-322-2",
"ProjectId": 0,
"ProjectName": null,
"ReasonId": null,
"ReasonName": null,
"ResponsableId": 3,
"Result": null,
"StartDate": "/Date(1577397038570-0500)/",
"StartDateReal": null,
"StatusId": 30,
"StatusName": "Registrada",
"TypeId": 0,
"UserName": "Especialista TI"
}
]
Error messages
Code | HTTP status | Error Message |
---|---|---|
400 | BadRequest | InvalidCaseId |
400 | BadRequest | InvalidCaseType |
500 | InternalServerError | FailureGetTask |