Skip to main content
PATCH
Update safety notice

Authorizations

X-API-Key
string
header
required

Path Parameters

notice_id
string<shortuuid>
required

Id of the safety notice.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$

Body

application/json

Payload for PATCH /safety-notices/{notice_id}; only the fields you send change.

text
string | null

New message, 1 to 300 characters.

Maximum string length: 300
Pattern: ^[^\x00]{0,}$
severity
enum<string> | null

New severity.

Available options:
info,
warning,
danger
expires_at
string<date-time> | null

New expiry. Send an explicit null to make the notice never expire.

Response

OK

A voluntary safety notice a brand published on one of its products.

id
string<shortuuid>
required

URL-safe 22-character shortuuid encoding of the row's UUID primary key. Stable across the row's lifetime; suitable for sharing in URLs, log lines, and external SDK clients. Accepted on input as either the shortuuid form or the canonical UUID form (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
organization_id
string<shortuuid>
required

The organization that owns the product.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
gtin
string
required

GTIN of the product the notice is on, normalized to GTIN-14.

text
string
required

The consumer-facing message (at most 300 characters).

severity
enum<string>
required

info, warning or danger.

Available options:
info,
warning,
danger
created
string<date-time>
required

Server-side ISO 8601 timestamp of creation (UTC).

modified
string<date-time>
required

Server-side ISO 8601 timestamp of last modification (UTC).

expires_at
string<date-time> | null

When the hosted page stops showing the notice. Null means it never expires.