EN
Español
English
Português
    Attachments to the article

    The query of the Attachments associated with an Article is carried out depending on the ID that is sent in the query.

    Details of the request:

    • URI: api/v8.1/article/{id}/file/list
    • Type: GET
    • Required headings:

    • Content-Type: application/json
    • Authorization: TOKEN


    Parameters:

    Name Data type Obligatory Description
    Id Number Yes Article ID


    Body of the petition:

    Empty.

    Answer:

    Depending on the number of attachments associated with the Article, the service will return a block for each attachment in a Json with the following structure:

    
    [
     {
     "Created": "/Date(1473801979043-0500)/",
     "Id": 3721,
     "Name": "Nombre del adjunto.docx",
     "Size": 634311,
     "Url": "Ubicación del adjunto"
     }
    ]
    
    

    Error messages:

    Code HTTP status Error Message
    400 BadRequest InvalidArticleId
    401 Unauthorized InvalidToken
    404 NotFound InvalidArticleId
    500 InternalServerError FailureListFiles