Skip to main content
PUT
Atualizar upsell
Requer o escopo upsells:write e o header HTTP Idempotency-Key.
Este PUT é um merge, e não uma substituição. Todos os campos são opcionais e o que você não envia fica como está, inclusive os textos dos botões e o product_link_id, que é o produto que a oferta cobra.
accept_redirect e refuse_redirect não são aceitos e derrubam a requisição com 422.
Uma oferta de outra conta retorna 404 sem escrever nada.

Authorizations

Authorization
string
header
required

A chave de API da conta, no formato sk_{modo}_{prefixo}.{segredo}.

Headers

Idempotency-Key
string
required

Chave única da operação. Obrigatória em toda requisição que altera dados; sem ela a resposta é 422 idempotency_key_required. Um reenvio com a mesma chave e o mesmo corpo repete a resposta guardada.

Maximum string length: 255

Path Parameters

id
integer
required

Body

application/json

Body of PUT /v2/public/upsells/{id}. Every field is optional, the way the source api accepted it (SHA 70cd772); what the request does not carry keeps the value the offer has.

name
string
Maximum string length: 255
status
enum<string> | null
Available options:
draft,
published,
null

The product the offer SELLS, when it is not the funnel's own.

Required range: x >= 1
accept_text
string | null
Maximum string length: 255
refuse_text
string | null
Maximum string length: 255
accept_page
string | null
Maximum string length: 500
refuse_page
string | null
Maximum string length: 500

Response

ApiUpsellResource

data
ApiUpsellResource · object
required