Detalhes da petição
- URI: api/v8.6/item/{id}/{itemType}/{userId}?level={level}
- Tipo: GET
-
Títulos obrigatórios:
- tipo de conteúdo: application/json
- Autorização: TOKEN
Parâmetros:
Nome | Tipo de dado | Obrigatório | Descrição |
---|---|---|---|
Id | Texto | Sim | ID do caso a ser consultado |
tipo de item | Número | Sim | Tipo de caso a ser criado. As opções são: 1. Incidente 2. Problema 3. Mudança 4. Requisito de serviço |
ID do usuário | Número | Sim | ID do meio pelo qual o caso é registrado. |
Nível | Número | Não | Nível de detalhe a ser consultado. As opções são: 0. Baixo 1. Médio 2. Alta Se não for fornecido, o alto detalhe retornará por padrão. |
Responder
Como resposta, um objeto json é obtido, com as seguintes informações:
{
"Annulled": null,
"AttentionDate": {
"Expected": "/Date(1457966400000-0500)/",
"Real": null
},
"AttentionDateExpected": null,
"AttentionDateReal": null,
"AuthorId": 3828,
"AuthorName": "Jorge Osorio",
"Building": null,
"BuildingDate": {
"Attention": null,
"Solution": null
},
"CABDate": {
"Attention": null,
"Solution": null
},
"CaseType": 2,
"CategoryHierarchy": null,
"CategoryId": 2499,
"CategoryName": "Registro Web",
"CauseId": null,
"CauseName": null,
"CiId": 4,
"CiName": "* Aranda 360",
"City": null,
"ClassifiedId": null,
"ClassifiedIdByProject": null,
"ClassifiedName": null,
"ClassifiedType": null,
"ClosedDate": null,
"Commentary": null,
"CompanyId": null,
"CompanyName": null,
"ComposedId": "PM-55134-2-8696",
"Cost": {
"Current": null,
"Expected": null,
"Real": null
},
"Country": null,
"CustomerId": null,
"CustomerName": null,
"Department": null,
"Description": "aa",
"Effort": null,
"EmailDate": null,
"Floor": null,
"GroupId": 13,
"GroupName": "Aranda Colombia",
"HasCurrentVoting": false,
"HasKnownError": false,
"HasSurvey": false,
"HeadQuarter": null,
"Id": 55134,
"IdByProject": 8696,
"ImpactId": -1,
"ImpactName": "NONE",
"ImplementationDate": {
"Attention": null,
"Solution": null
},
"InterfaceId": null,
"IsClosed": false,
"IsStateProvider": true,
"KnownError": null,
"PriorityId": 1,
"PriorityName": "LOW",
"ProcedureId": null,
"ProcedureName": null,
"Progress": 0,
"ProjectId": 2,
"ProjectName": "Soporte",
"ProviderId": null,
"ProviderName": null,
"RFCDate": {
"Attention": null,
"Solution": null
},
"ReasonId": null,
"ReasonName": null,
"ReceptorId": 243,
"RegistrationDate": "/Date(1457731263700-0500)/",
"RegistryTypeId": 1,
"RegistryTypeName": "Web",
"ReviewDate": {
"Attention": null,
"Solution": null
},
"RoutingType": null,
"ServiceId": 2420,
"ServiceName": "CAMBIOS",
"SlaId": 2456,
"SlaName": "Cambios",
"SolutionDate": {
"Expected": null,
"Real": null
},
"SolutionDateExpected": null,
"SolutionDateReal": null,
"SpecialistId": 243,
"SpecialistName": "Jorge Osorio",
"StageId": null,
"StageName": null,
"StateId": 199,
"StateName": "Registrado",
"TestingDate": {
"Attention": null,
"Solution": null
},
"Time": 0,
"UrgencyId": -1,
"UrgencyName": "NONE",
"UserCanEdit": true,
"VotingProcessId": null,
"VotingProcessName": null
}
Mensagens de erro
Código | Status HTTP | Mensagem de erro |
---|---|---|
400 | Solicitação BadRequest | Token inválido |
400 | Solicitação BadRequest | InvalidUserId |
400 | Solicitação BadRequest | InvalidItemId |
400 | Solicitação BadRequest | InvalidItemType |
400 | Solicitação BadRequest | InvalidUserId |
400 | Solicitação BadRequest | InvalidLevelOfDetail |
403 | Proibido | UnauthorizedIncidentView |
403 | Proibido | UnauthorizedChangeView |
403 | Proibido | UnauthorizedProblemView |
403 | Proibido | UnauthorizedServiceCallView |
403 | Não encontrado | InvalidItemId |
500 | Erro de servidor interno | FalhaGetItem |