You can use the endpoint in this section to create a file in Jestor by sending a base64 encoded file. You can then use the result to update a preexisting record with the file.

Warning: if you already have files in the record to be updated, it's important to fetch the record and then append the previously mentioned result to the files JSON, or you will lose the preexisting files.

This is an example of a JSON used to update the record with the resulting filePath:

{
    "object_type":"table_id",
    "data":{
        "id_table_id":33,
        "file_field":"[{\"id\":\"test_123\",\"ext\":\"txt\",\"name\":\"Test\",\"originalName\":\"Test.txt\",\"type\":\"file\",\"fileType\":\"plain/text\",\"file\":\"table_id/teste__0e8dbf6f0986166bf779b9a964d6bd9c.txt\"}]"
    },
    "token":"68c2e29e7117054d625d377afb7ef8de"
}
Language
Authorization
Header
Click Try It! to start a request and see the response here!