Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Headers

Idempotency-Key
string

A unique key (up to 255 printable ASCII characters). The same key from your app within 24 hours answers the first result again, with Idempotent-Replayed: true, instead of creating twice.

Maximum string length: 255

Path Parameters

id
string<uuid>
required

The order's ID.

Body

application/json
text
string
required

Trimmed, then 1 to 30 characters with at least one that shows. One line: no control or invisible characters. Unique among your app's labels on the order or product, letter case aside.

Required string length: 1 - 30
color
enum<string>
default:gray

gray when left out. null is refused.

Available options:
gray,
red,
orange,
yellow,
green,
blue,
purple

Response

The label added. Location is its path, for deleting it; there is no endpoint to read one label.

label
object
required