Upload

Description: Uploads a file to the Rulex Server.

URL/upload

Method: POST


Parameters

The file to be uploaded to the server can be provided either:

  • using plain JSON text, where the body of the text must be as follows:

    JSON

    { file : { encoding : "base64", data : "cV0Dw5tjqATw7HDpsOaSsKQTF/DsV..." }, filename : "test.txt" }
  • as a form-data key-value pair, where the "key" name is file. The header must have the following format:

    Form-data Header

    { Content-Type : "application/x-www-form-urlencoded" }


Response Codes

Code

Result

Response

Code

Result

Response

Success

200

Success

 

Client errors

400

Bad request

 

401

Unauthorized

 

 

Need to get in touch? https://www.rulex.ai/contact/ - Need a license renewal? https://rulex.atlassian.net/servicedesk/customer/user/login?destination=portals
© 2024 Rulex, Inc. All rights reserved.