API: Adding files to field with existing files leads to duplicated and missing files

Hi!

We stumbled upon a weird issue within the Tape API.

We have one record with an existing file (called “_chat.txt”) in an “Attachment/Files” simply called “files”:

Next, we want to add existing files from another (already existing) record to our record. We do this by simply appending to the list of file_ids in “files”:

But this PUT request results in an error: The original file (“_chat.txt”) is now duplicated and only one of the two additional PDF files was added:

We then found out, that you can add the file_ids in inverse order to the array to make it work:

Which results in a better outcome: Both PDF files are now added to our record (in inverse order):

1 Like