Delete an attachment
/api/v1/attachments/{attachment_uuid}
operationId: attachment.delete
Base: https://portal.watcheye.com.au/api/v1/attachments/{attachment_uuid}
Soft-delete any attachment on this account, whether it was uploaded by a portal user or an API
key. A subsequent show, list or download call for the attachment returns 404. The deleted
attachment is returned in the response as confirmation.
See the Soft Deletion section of the API guide for the recovery window.
Attachments on an archived entity cannot be deleted; the request is rejected with 409.
Path parameters
| Field | Description |
|---|---|
attachment_uuidrequired |
string (uuid) The attachment UUID |
Responses
Attachment deleted (soft-delete - returned as confirmation)
application/json
| Field | Description |
|---|---|
data |
object An attachment: a file attached to an entity, such as a trust deed, an ASIC extract, a signed declaration or a contract. The contents are stored encrypted and are returned by the download endpoint. Deleting an attachment is a soft-delete: subsequent show or list calls for it return |
data. |
string (uuid) The attachment's UUID |
data. |
string A short public identifier for the attachment, shown in the portal |
data. |
string (uuid) UUID of the entity the attachment is on |
data. |
string (uuid) UUID of the program the entity belongs to |
data. |
string The name of the file as uploaded |
data. |
string What the file is. Any text up to 100 characters; |
data. |
string or null An optional description of the file (max 2000 characters) |
data. |
string The type of the file, detected from its contents |
data. |
string A readable name for the type of file |
data. |
integer The size of the file in bytes |
data. |
string SHA-256 hash of the file contents, as lowercase hex. Files with the same hash have identical contents. |
data. |
object or null Identifies who uploaded the file. The
|
data. |
string Discriminator for the actor type. |
data. |
string (uuid) UUID of the user or API key that uploaded the file. |
data. |
string Username of the portal user. Present only when |
data. |
string Label of the API key. Present only when |
data. |
string (date-time) or null ISO 8601 timestamp at which the attachment was archived with its entity (null if not archived) |
data. |
string (date-time) |
data. |
string (date-time) |
api_reference |
string (uuid) |
Conflict - the attachment is on an archived entity
application/json
| Field | Description |
|---|---|
message |
string |