# Update attachment Partially updates an existing Attachment. Only provided fields will be updated. Endpoint: PATCH /site/{siteId}/ahds/v1/attachment/{attachmentId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `attachmentId` (string, required) Attachment unique identifier (UUID) ## Request fields (application/json): - `extensions` (object) Vendor- or practice-specific extension fields. - `fileDownloadUrl` (string) URL that can be used to download the file content, subject to authorization. - `fileId` (string) Identifier of the underlying stored file object. Example: "123e4567-e89b-12d3-a456-426614174000" - `isActive` (boolean) Whether the attachment is active and should be shown in client applications. - `isPrimaryImage` (boolean) Whether this attachment is the primary image for the associated record. - `mimeType` (string) MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf'). - `name` (string) Human-readable name or title of the attachment. - `notes` (string) Free-text notes related to the attachment. - `recordId` (string) Identifier of the record this attachment is linked to. Example: "123e4567-e89b-12d3-a456-426614174000" - `recordType` (string) Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult'). ## Response 200 fields (application/json): - `attachmentId` (string, required) Canonical identifier for the attachment. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when the attachment record was created. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object, required) Vendor- or practice-specific extension fields. - `fileDownloadUrl` (string, required) URL that can be used to download the file content, subject to authorization. - `fileId` (string, required) Identifier of the underlying stored file object. Example: "123e4567-e89b-12d3-a456-426614174000" - `isActive` (boolean, required) Whether the attachment is active and should be shown in client applications. - `isPrimaryImage` (boolean, required) Whether this attachment is the primary image for the associated record. - `mimeType` (string, required) MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf'). - `name` (string, required) Human-readable name or title of the attachment. - `notes` (string, required) Free-text notes related to the attachment. - `recordId` (string, required) Identifier of the record this attachment is linked to. Example: "123e4567-e89b-12d3-a456-426614174000" - `recordType` (string, required) Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult'). - `updatedAt` (string, required) Timestamp when the attachment record was last updated. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 404 fields