Collection: beacons.attachments

Resource: BeaconAttachment

Project-specific data associated with a beacon.

JSON representation
{
  "attachmentName": string,
  "namespacedType": string,
  "data": string,
  "creationTimeMs": string,
}
Fields
attachmentName

string

Resource name of this attachment. Attachment names have the format: beacons/beacon_id/attachments/attachment_id. Leave this empty on creation.

namespacedType

string

Specifies what kind of attachment this is. Tells a client how to interpret the data field. Format is namespace/type. Namespace provides type separation between clients. Type describes the type of data, for use by the client when parsing the data field. Required.

data

string (bytes format)

An opaque data container for client-provided data. Must be base64 encoded in HTTP requests, and will be so encoded (with padding) in responses. Required.

A base64-encoded string.

creationTimeMs

string (Timestamp format)

The UTC time when this attachment was created, in milliseconds since the UNIX epoch.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Methods

batchDelete

Deletes multiple attachments on a given beacon.

create

Associates the given data with the specified beacon.

delete

Deletes the specified attachment for the given beacon.

list

Returns the attachments for the specified beacon that match the specified namespaced-type pattern.