Hi Matthew,
attachments are items too (OK, somehow special ...), thus versioned too.
I haven't tried, but there is an endpoint
PUT /attachments/{attachmentId}/file.
Maybe you can try to update an existing attachment.
Best,
------------------------------
Alessandro
Systems Engineer
SICK AG
------------------------------
Original Message:
Sent: 12-12-2022 19:42
From: Matthew Huisman
Subject: Attachments Policy?
Hi,
Is there any policy in regards to attachments?
We currently attach our zipped test results data to each testrun.
Before attaching, we remove any existing attachments using DELETE /items/{id}/attachments/{attachmentId}
Then we upload our latest.
We are aware that these deleted attachments may not actually be removed, but just "unlinked" from the testrun.
Is there anyway to delete the attachment itself via the API?
We are just concerned about the total size of attachments overtime if they are not actually deleted.
Are we OK to keep doing as we are doing?
Thanks,
Matt
------------------------------
Matthew Huisman
Enphase
------------------------------