Skip to navigation

Save Measurements

View as Markdown

Saves a named set of measurements, replacing the set with the same name. An account keeps up to 20 sets.

Keys: public key or secret key.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Headers

channelstringRequired
shopper-tokenstringRequired

The token returned when the shopper signed in. Treat it as a secret: never put it in a URL or a log.

Request

This endpoint expects an object.
namestringRequired<=60 characters
Saving under a name that already exists, ignoring case, replaces that set.
valueslist of objectsRequired
Each label once.
unitenumOptional

Defaults to CM.

Allowed values:

Response

Successfully saved measurements
statusboolean

Always true on success.

messagestring

Human-readable outcome.

dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
422
Unprocessable Entity Error