EN
Español
English
Português
    List Case Files

    Petition Details**

    • URI: api/v8.6/item/{id}/{itemType}/{userId}/files
    • Type: GET
    • Required headings:

    • content-type: application/json
    • Authorization: TOKEN

    Parameters

    Name Data type Obligatory Description
    Id Int Yes Case ID
    ItemType Number Yes
    Type of case to be created. The options are:
    1. Incident
    2. Problem
    3. Change
    4. Service Requirement
    userId Number Yes ID of the user who queries the case.

    Body of the petition

    N/A

    Answer

    As an answer, a json object is obtained, with the following information:

    [
        {
            "Created": "/Date(1643321765010-0500)/",
            "Id": 1975,
            "IsPublic": true,
            "Name": "Docx-Texto+4000.docx",
            "Size": 17822,
            "Url": "http://localhost/AFS/handlers/AFSHandler.ashx?guid=1E5C3DD4-6274-4075-B414-9CAC3977723D&token=51zeviirne3tux0j4ebqzp34"
        },
        {
            "Created": "/Date(1643244951267-0500)/",
            "Id": 1968,
            "IsPublic": true,
            "Name": "IMG_20220127_015511.png",
            "Size": 76200,
            "Url": "https://localhost/AFS/handlers/AFSHandler.ashx?guid=8478CAF4-D219-437F-B23E2A018C1FA8C2&token=51zeviirne3tux0j4ebqzp34"
        }
    ]
    

    Error messages

    Code HTTP status Error Message
    400 BadRequest  
    401 Unauthorized  
    500 InternalServerError