EN
Español
English
Português
    Get Files

    Request Detail:

    • Base URL: {host}/ASMSAPI/
    • URI: api/v9/article/{id}/files?uploadType=0
    • Type: GET
    • 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/article/{id}/files?uploadType=0
    


    Parameters:

    Name Guy Obligatory Description
    Id Numerical Yes Item identifier.
    uploadType Numerical Yes Identifies whether the file is from the article or an additional field - Article = 0, - AdditionalField - 1.


    Examples of uri:

    api/v9/Article/1761/files?uploadType=0

    Answer:

    The service will return a Json with the following structure:

    {
        "content": [
            {
                "date": 1696809864677,
                "description": "Archivo",
                "id": 231,
                "isPublic": true,
                "name": "Additionals (2).xlsx",
                "size": 71384,
                "url": null,
                "userId": 1,
                "userName": "APPLICATION ADMINISTRATOR"
            }
        ],
        "totalItems": 1
    }
    

    Error messages:

    Code HTTP status Error Message
    500 InternalServerError FailureAddRelation