Update an attachment's details
/api/v1/attachments/{attachment_uuid}
operationId: attachment.update
Base: https://portal.watcheye.com.au/api/v1/attachments/{attachment_uuid}
Change the category and/or description of any attachment on this account, whether it was
uploaded by a portal user or an API key. At least one of the two fields must be sent; send
description: null to clear the description. The file contents and the entity it is
attached to cannot be changed - to replace a file, upload the new one and delete the old.
Attachments on an archived entity cannot be changed; the request is rejected with 409.
Path parameters
| Field | Description |
|---|---|
attachment_uuidrequired |
string (uuid) The attachment UUID |
Request body
Content type application/json.
The fields to update
| Field | Description |
|---|---|
category |
string [max 100 characters] What the file is, up to 100 characters. An empty value sets it to |
description |
string [max 2000 characters] or null The description of the file, max 2000 characters. |
Responses
Attachment updated
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 |