AttachmentService

GET /api/attachments

Changed on

ListAttachments lists attachments linked to memos the caller can read, plus the caller's unlinked uploads.

Request

  • The document declares no server URL.
  • Auth
    none declared

Query parameters

pageSizeinteger

Optional. The maximum number of attachments to return. The service may return fewer. If unspecified, at most 50 attachments are returned. Values above 1000 are coerced to 1000.

pageTokenstring

Optional. A page token from a previous call. Provide it to retrieve the next page.

filterstring

Optional. A CEL filter over the results. Example: mime_type == "image/png" or filename.contains("test"). Supported operators: ==, !=, <, <=, >, >=, : (contains), in. Supported fields: creator, filename, mime_type, create_time, memo_id, space. creator is the linked memo's creator, or the uploader for an unlinked attachment. It supports equality with a User resource name. space is the linked memo's Space resource name, or null when the attachment is unlinked or its memo has no space. It supports only a non-negated == comparison with a Space resource name or null.

orderBystring

Optional. The order to sort results by, such as "create_time desc" or "filename asc". The service does not apply it yet.

Response

OK

nextPageTokenstring

A token to retrieve the next page. Empty when there are no more pages.

Changes