Esta operación crea un caso y al crearlo guarda los archivos adjuntos, tanto del caso, como de sus campos adicionales; después de guardarlos borra los archivos de la carpeta temporal creada para ello.
Detalles de la petición
-
Uri: api/v9/item
-
Tipo: POST
-
Encabezados requeridos: content-type: application/json X-Authorization: Bearer {token}
Parámetros:
Nombre | Tipo de dato | Obligatorio | Descripción |
---|---|---|---|
tempItemId | Int | Si | Identificador temporal del caso, este debe ser negativo. |
Cuerpo de la petición
{
"categoryId": 623, "cause": null, "ciId": null, "companyId": 578,
"consoleType": "specialist", "correctActions": null, "currentTime": 0, "customerId": null, "description": "Test postman ", "foregroundColorRgb": "", "followUpActions": null, "hasMoreInformation": false, "hasPendingSurvey": false, "estimatedCost": 0,
"realCost": 0, "recomendations": null, "impactId": 7203, "incorrectActions": null, "instance": 1632253928839, "isFeeAvailable": true, "itemType": 4,
"itemVersion": 0, "knownError": null, "majorProblem": null, "modelId": 70,
"unitId": null, "priorityReason": "", "projectId": 19,
"providerId": null,
"reasonId": null, "registryTypeId": 7199, "serviceId": 140,
"stateId": 267,
"subject": "Prueba póstman",
"surveyToken": "",
"thirdParty": null,
"transformed": false,
"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": null,
"mandatory": true,
"name": "[ES] Software 1",
"order": 1,
"projectId": null,
"stringValue": "Aranda Data Safe",
"type": null,
"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": null,
"mandatory": true,
"name": "[ES] Software 2",
"order": 2,
"projectId": null,
"stringValue": "Aranda Virtual Support", "type": null,
"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": null,
"mandatory": true,
"name": "[ES] Software 3",
"order": 3,
"projectId": null,
"stringValue": "Aranda Field Service",
"type": null,
"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": null,
"mandatory": true,
"name": "[ES] Software 4",
"order": 4,
"projectId": null,
"stringValue": "Aranda Path Management", "type": null,
"url": null,
"visible": true
}
],
"authorId": 4832,
"tempItemId": -3
}
Respuesta
{
"id": 84486,
"idByProject": "RF-84486-19-407613" }
Parámetros Response:
Nombre | Tipo de dato | Descripción |
---|---|---|
Id | Int | Identificador del caso |
idByProyect | string | Identificador del caso por proyecto |
Mensajes de error
Código | Estado HTTP | Mensaje de error |
---|---|---|
400 | BadRequest | \r\nNombre del parámetro: ConsoleType |
400 | BadRequest | \r\nNombre del parámetro: ItemType |
400 | BadRequest | \r\nNombre del parámetro: ListAdditionalField |
400 | BadRequest | \r\nNombre del parámetro: TempItemId |
400 | BadRequest | InvalidItemType |
400 | BadRequest | ModelIdIsEmpty |
400 | BadRequest | RequestNeedsSomeArguments |
400 | BadRequest | StateIdIsEmpty |
403 | Forbidden | DoNotHavePermissionForThisAction |
500 | InternalServerError | FailureAddItem |