EN
Español
English
Português
    Attach Files

    Petition Details

    • URI: /api/v8.6/item/addfile
    • Type: POST
    • Required headings:

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

    Parameters

    Body of the petition

    The request consists of a FormData as follows. Example:

    ..........................27525549224174
    Content-Disposition: form-data; name="file0"; filename="Example.html"
    Content-Type: text/html
    []
    .........................27525549224174
    Content-Disposition: form-data; name="itemId" 
    94157
    .........................27525549224174
    Content-Disposition: form-data; name="itemType" 
    4
    .........................27525549224174
    Content-Disposition: form-data; name="userId" 
    2115
    .........................27525549224174—
    
    

    Answer

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

    [
    {
    "FileName":"Example.html",
     
    
    
    "Info":null, "Result":true
    }
    ]
    
    

    Error messages

    Code HTTP status Error Message
    400 BadRequest FailureReadingRequestData
    401 Unauthorized  
    500 InternalServerError