v52

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

CreateAttachment creates a new attachment.

post/api/v1/attachments

Query parameters

attachmentIdstring

Optional. The attachment ID to use for this attachment. If empty, a unique ID will be generated. Format: ^a-zA-Z0-9?$

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}