v52

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-037389158.9 KB
AttachmentService

UpdateAttachment updates an attachment.

patch/api/v1/attachments/{attachment}

Path parameters

attachmentstring required

The attachment id.

Query parameters

updateMaskstring field-mask

Required. The list of fields to update.

Request body

namestring

The name of the attachment. Format: attachments/{attachment}

createTimestring date-time

Output only. The creation timestamp.

filenamestring required

The filename of the attachment.

contentstring bytes

Input only. The content of the attachment.

externalLinkstring

Optional. The external link of the attachment.

typestring required

The MIME type of the attachment.

sizestring

Output only. The size of the attachment in bytes.

memostring

Optional. The related memo. Refer to Memo.name. Format: memos/{memo}

Response

OK

namestring

The name of the attachment. Format: attachments/{attachment}

createTimestring date-time

Output only. The creation timestamp.

filenamestring required

The filename of the attachment.

contentstring bytes

Input only. The content of the attachment.

externalLinkstring

Optional. The external link of the attachment.

typestring required

The MIME type of the attachment.

sizestring

Output only. The size of the attachment in bytes.

memostring

Optional. The related memo. Refer to Memo.name. Format: memos/{memo}