Skip to navigation

UpdateBeacon

UpdateBeacon renames or recolours a beacon; update_mask names the fields (name, color).

Authentication

AuthorizationBearer

A team API key, sent as Authorization: Bearer <key>.

OR
AuthorizationBearer

The Cognito access token of a signed-in Edulead user (edulead auth login), sent as Authorization: Bearer <token>.

Path parameters

idstringRequiredformat: "uuid"1-36 characters
Identifier of the resource, assigned by Edulead and opaque to callers.

Headers

Edulead-TeamstringRequired

Query parameters

update_maskstringOptional
Which fields of the resource to change. Fields not listed keep their values.

Request

This endpoint expects an object.
idstringOptional<=36 characters
Identifier of the resource, assigned by Edulead and opaque to callers.
namestringOptional<=100 characters

The beacon’s name, trimmed; required on create and when updated. Names need not be unique.

institution_countintegerOptional
How many institutions the beacon holds. Output only.
creator_idstringOptional<=255 characters
The user or API key that created it.
create_timedatetimeOptional
When Edulead created the resource.
update_timedatetimeOptional
When any field last changed.
colorstringOptionalformat: "^(|color:[a-z]+-[0-9]{1,3})$"<=32 characters

The beacon’s colour on the map, or empty for the app’s default: a scheme and a value, for now color:<name>-<shade> naming the app’s palette (color:orange-80); a hex: scheme may follow.

Response

Success
beaconobjectOptional

Beacon is a named list of institutions. update_time moves on every change of the name or the institutions.