Detalhes da petição
- URL base: {host}/ASMSAPI/
- Uri: /api/v9/item/{ItemId}
- Tipo: PUT
-
Títulos obrigatórios:
- tipo de conteúdo: application/json
- Autorização X: Portador {token}
Descrição do URL
- {host}: Ele representa o domínio do ambiente no qual a API está localizada.
- ASMSAPI/: Prefixo de API fixo.
- URI: Ponto de extremidade específico para a solicitação.
⚐ URL DE EXEMPLO:
https://{host}/ASMSAPI/api/v9/item/{ItemId}
Parâmetros
Nome | Tipo de dado | Obrigatório | Descrição |
---|---|---|---|
ID do item | Número | Sim | ID do caso |
tipo de item | Corda | Sim | Tipo de caixa |
tipo de console | Corda | Sim | Tipo de console |
ID do modelo | Int | Sim | Identificador do modelo |
Identificação do estado | Int | Sim | ID do estado |
listAdditionalField | Lista | Sim | Somente os campos obrigatórios adicionais são obrigatórios. |
Versão do item | Int | Sim | Versão do caso |
Corpo da petição
{
"categoryId": 623,
"cause": "",
"ciId": 0,
"commentary": "",
"companyId": 578,
"consoleType": "specialist",
"constructionInitialDate": null, "constructionFinalDate": null,
"correctActions": "",
"currentTime": 0,
"customerId": 0,
"description": "Test postman ", "estimatedCost": 0,
"estimatedTime": 0,
"foregroundColorRgb": "",
"followUpActions": "",
"groupId": 5,
"hasMoreInformation": false,
"hasPendingSurvey": false,
"impactId": 7203,
"incorrectActions": "",
"instalationInitialDate": null,
"instalationFinalDate": null,
"instance": 1632254175313,
"isFeeAvailable": true,
"itemType": 4,
"itemVersion": 2,
"knownError": null,
"majorProblem": null,
"modelId": 70,
"priorityId": 9,
"priorityReason": "",
"projectId": 19,
"providerId": null,
"psoInitialDate": null,
"psoFinalDate": null,
"realCost": 0,
"recomendations": "",
"registryTypeId": 7199,
"responsibleId": 4479,
"serviceId": 140,
"stateId": 267,
"subject": "Prueba póstman",
"surveyToken": "",
"testInitialDate": null,
"testFinalDate": null,
"thirdParty": false,
"transformed": false,
"unitId": null,
"urgencyId": 5,
"listAdditionalField": [
{
"boolValue": null,
"catalogId": null,
"dataSourceId": null,
"dateValue": null,
"description": "[ES] Nombre Aplicativo", "enable": true,
"fieldId": 977,
"fieldType": 3,
"fieldTypeName": "List",
"floatValue": null,
"identifier": "A001",
"inputStream": null,
"intValue": 118,
"itemId": 84486,
"mandatory": true,
"name": "[ES] Software 1",
"order": 1,
"projectId": null,
"stringValue": "Aranda Data Safe",
"type": 4,
"url": null,
"visible": true
},
{
"boolValue": null,
"catalogId": null,
"dataSourceId": null,
"dateValue": null,
"description": "[ES] Nombre Aplicativo", "enable": true,
"fieldId": 978,
"fieldType": 3,
"fieldTypeName": "List",
"floatValue": null,
"identifier": "A002",
"inputStream": null,
"intValue": 146,
"itemId": 84486,
"mandatory": true,
"name": "[ES] Software 2",
"order": 2,
"projectId": null,
"stringValue": "Aranda Virtual Support", "type": 4,
"url": null,
"visible": true
},
{
"boolValue": null,
"catalogId": null,
"dataSourceId": null,
"dateValue": null,
"description": "[ES] Nombre Aplicativo", "enable": true,
"fieldId": 979,
"fieldType": 3,
"fieldTypeName": "List",
"floatValue": null,
"identifier": "A003",
"inputStream": null,
"intValue": 156,
"itemId": 84486,
"mandatory": true,
"name": "[ES] Software 3",
"order": 3,
"projectId": null,
"stringValue": "Aranda Field Service",
"type": 4,
"url": null,
"visible": true
},
{
"boolValue": null,
"catalogId": null,
"dataSourceId": null,
"dateValue": null,
"description": "[ES] Nombre Aplicativo", "enable": true,
"fieldId": 980,
"fieldType": 3,
"fieldTypeName": "List", "floatValue": null,
"identifier": "A004",
"inputStream": null,
"intValue": 176,
"itemId": 84486,
"mandatory": true,
"name": "[ES] Software 4",
"order": 4,
"projectId": null,
"stringValue": "Aranda Path Management", "type": 4,
"url": null,
"visible": true
}
]
}
Responder
{
"itemVersion": 3, "result": true
}
Parâmetros de resposta
Nome | Tipo de dado | Descrição |
---|---|---|
resultado | Booleano | Resultado da operação |
Versão do item | Número | Versão do caso |
Mensagens de erro
Código | Status HTTP | Mensagem de erro |
---|---|---|
400 | Solicitação BadRequest | \r\nNome do parâmetro: Consoletype |
400 | Solicitação BadRequest | \r\nNome do parâmetro: id |
400 | Solicitação BadRequest | \r\nNome do parâmetro: Itemtype |