API Appending file to Document Encoding Error


I’m using the REST API to append a file to an existing document. I’m getting an error about the File Encoding.

I’m using BASE64 for the encoding. I’m guessing I have the API URL wrong. Here’s an example

curl -X 'POST' \
  'https://docs-test.mywebsite.com/api/v4/documents/155/files/' \
  -d '{
  "file_new": "BASE64 ENCODED FILE",
  "action_name": "append"

I solved this issue.

file_new: needs to be a file object, which gives the filename, mime type, and the actual file data.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.