EN
Español
English
Português
    Delete Files

    To remove an attachment from an additional field, you must update the additional field with the following null or empty fields:

    "IntValue": null
    
    "StringValue": null
    
    "InputStream": null
    

    Petition Details

    • Base URL: {host}/ASMSAPI/
    • Uri: /api/v9/file/{id}?uploadType={uploadType}
    • Type: DELETE
    • 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/{id}?uploadType={uploadType}
    


    Parameters:

    Name Data type Obligatory Description
    Id Int Yes File ID
    ItemType String Yes Item Type
    ItemId Int Yes Item ID
    Filename String No File name, only required when deleting a temporary file.
    uploadType String Yes Indicates whether the file is uploaded to the case or to the additional field of the case Case = 0, AdditionalField - 1

    Body of the petition

    {
    
          "itemId": 84486,     "itemType": 4
    
    }
    
    *Respuesta*
    
    {
    
          "result": true }
    

    Error messages

    Code HTTP status Error Message
    500 InternalServerError FailureDeleteFile