Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Headers

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Path Parameters

id
string<uuid>
required

The environment's id.

Body

application/json

Any subset of the fields.

default_locale
enum<string>

The language this environment writes to a contact whose own language nobody reported. Send "" to go back to the platform default — here, unlike on a contact, the empty string is a choice you can mean.

A tag this platform cannot render is refused rather than stored, because a setting that appears saved and never renders is worse than one you were told about.

Available options:
pt-BR,
en,
credit_overage
enum<string>

What POST /v1/usage does when a customer's credit balance runs out. block is the default and refuses the spend with insufficient_credit. bill lets it through and charges the excess — and needs two more things before it means anything: the plan's credit feature must name an overage_meter_ref, and the environment's payment gateway must be connected and able to report metered usage. Any of the three missing and the spend is refused, which is the safe direction: nobody is charged for something they were not told they were buying.

Available options:
block,
bill

Response

Updated.

environment
object