List Attachments
ListAttachments lists attachments linked to memos the caller can read, plus the caller's unlinked uploads.
Query Parameters
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.
int32Optional. A page token from a previous call. Provide it to retrieve the next page.
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.
Optional. The order to sort results by, such as "create_time desc" or "filename asc". The service does not apply it yet.
Response Body
application/json
application/json
curl -X GET "https://example.com/api/attachments"{ "attachments": [ { "name": "string", "creator": "string", "filename": "string", "type": "string", "content": "string", "externalLink": "string", "motionMedia": { "family": "MOTION_MEDIA_FAMILY_UNSPECIFIED", "role": "MOTION_MEDIA_ROLE_UNSPECIFIED", "groupId": "string", "presentationTimestampUs": "string", "hasEmbeddedVideo": true }, "mediaMetadata": { "width": 0, "height": 0, "photo": { "captureTime": { "localDateTime": "string", "utcOffset": "string" }, "location": { "latitude": 0.1, "longitude": 0.1, "altitudeMeters": 0.1 }, "sourceExifOrientation": 0, "cameraMake": "string", "cameraModel": "string", "lensModel": "string", "fNumber": 0.1, "exposureTimeSeconds": 0.1, "iso": 0, "focalLengthMm": 0.1 }, "video": { "durationSeconds": 0.1 } }, "memo": "string", "size": "string", "createTime": "2019-08-24T14:15:22Z" } ], "nextPageToken": "string"}Get Attachment
GetAttachment gets an attachment by name. An unlinked attachment is visible only to its uploader and admins; a linked attachment follows the read access of its memo.
Update Attachment
UpdateAttachment updates an attachment. Only `filename` can be updated. The caller must be the uploader or an admin.