EN
Español
English
Português
    Attach Files
    • For new cases:

    • Attachments for the item and additional fields will be saved when this file is saved.
    • For existing cases:
    • The item’s attachments can be saved independently of updating the case.
    • Attachments for additional fields will be saved when you are given the save option.

    Petition Details

    • Base URL: {host}/ASMSAPI/
    • Uri: api/v9/file
    • Type: POST
    • 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/file
    


    Parameters

    Name Data type Obligatory Description
    Data0   Yes File attached
    FileItemId Number Yes Case ID
    FileItemType Text Yes Case Type
    UploadType Text Yes Identifies whether the file is from the case or an additional field - Case = 0, - AdditionalField - 1
    AdditionalFieldId Number No It is only required when the file type is an additional field.
    Concept Text Yes Indicates item concept - Item = 0 - Active = 6 - Article = 5
    Description Text No Description with which the file is to be attached

    Body of the petition

    Answer

    [
    
          {
    
             "description": null,
    
             "fileName": "ESTANDAR\_DE\_BASE\_DE\_DATOS\_V1.2.doc",         "info": null,
    
             "result": true,
    
             "url": null
    
          }
    
    ]
    

    Response Parameters

    Name Data type Description
    Description Text File description
    Filename Text File Name
    result Boolean Result of the operation
    URL Text File URL

    Error messages

    Code HTTP status Error Message
    500 InternalServerError FailureAddFile