EN
Español
English
Português
    Case Edition

    Petition Details

    • Base URL: {host}/ASMSAPI/
    • Uri: /api/v9/item/{ItemId}
    • Type: PUT
    • Required headings:

    • content-type: application/json
    • X-Authorization: Bearer {token}

    URL Description

    • {host}: It represents the domain of the environment in which the API is located.
    • ASMSAPI/: Fixed API prefix.
    • URI: Specific endpoint for the request.


    EXAMPLE URL:

    https://{host}/ASMSAPI/api/v9/item/{ItemId}
    


    Parameters

    Name Data type Obligatory Description
    ItemId Number Yes Case ID
    itemType String Yes Case Type
    consoleType String Yes Console Type
    modelId Int Yes Model identifier
    stateId Int Yes State ID
    listAdditionalField List Yes Only the additional required fields are required.
    itemVersion Int Yes Case version

    Body of the petition

    {
    
          "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
    
              }
    
          ]
    
    }
    

    Answer

    {
    
          "itemVersion": 3,     "result": true
    
    }
    

    Response Parameters

    Name Data type Description
    result Boolean Result of the operation
    itemVersion Number Case version

    Error messages

    Code HTTP status Error Message
    400 BadRequest \r\nParameter Name: Consoletype
    400 BadRequest \r\nParameter Name: Id
    400 BadRequest \r\nParameter Name: Itemtype