Pular para o conteúdo principal
PUT
Go (SDK)

Autorizações

Authorization
string
header
obrigatório

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Cabeçalhos

If-Match
string

The version of the state you read and edited. When supplied, the write is refused with 412 if anyone changed the state in the meantime, instead of silently overwriting them. * matches the current state unconditionally.

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de caminho

key
string
obrigatório
Pattern: ^[a-z0-9][a-z0-9-]{0,62}$
env
string
obrigatório
Pattern: ^[a-z0-9][a-z0-9-]{0,62}$

Corpo

application/json
enabled
boolean
obrigatório
overrides
object[]
obrigatório
Maximum array length: 1000
rollout_percentage
integer
obrigatório
Intervalo obrigatório: 0 <= x <= 100
rules
object[]
obrigatório
Maximum array length: 100
value
any
obrigatório

Qualquer valor JSON; sua forma é restringida pelo value_type da flag.

Resposta

Estado salvo

enabled
boolean
obrigatório
overrides
object[]
obrigatório
Maximum array length: 1000
rollout_percentage
integer
obrigatório
Intervalo obrigatório: 0 <= x <= 100
rules
object[]
obrigatório
Maximum array length: 100
value
any
obrigatório

Qualquer valor JSON; sua forma é restringida pelo value_type da flag.

updated_at
string<date-time>
obrigatório
version
string
obrigatório

Token de revisão opaco. Envie-o de volta como If-Match na próxima gravação desse estado para que uma edição concorrente seja recusada em vez de ser sobrescrita silenciosamente. Compare e ecoe-o; nunca o analise.