Skip to main content
PUT
/
v1
/
raffles
/
{id}
/
insells
/
{insell_id}
curl -u "pb_xxx:sk_xxx" -X PUT \
  -H "Content-Type: application/json" \
  -d '{
    "type": "iframe",
    "iframe": { "type": "fullscreen", "url": "https://insell.cliente.digital/" }
  }' \
  "https://api.sortify.com.br/v1/raffles/{id}/insells/{insell_id}"
{
  "success": true,
  "message": "Insell atualizado com sucesso",
  "data": {
    "id": "4b3a2c1d-0e9f-8a7b-6c5d-e4f3a2b1c0d9",
    "type": "iframe",
    "title": "Oferta parceira",
    "description": null,
    "display_order": 0,
    "iframe": { "type": "fullscreen", "url": "https://insell.cliente.digital/" },
    "is_active": true,
    "created_at": "2026-07-06T12:00:00.000Z",
    "updated_at": "2026-07-06T12:10:00.000Z"
  }
}
Atualização parcial: envie apenas os campos que deseja alterar. Aceita os mesmos campos do criar insell, todos opcionais.
Regras de tipo e configuração (idênticas a upsells/presells):
  • Os objetos custom/iframe são substituição total — envie o objeto completo.
  • Trocar o type exige a configuração do novo tipo na mesma requisição. Mudar para simple exige o objeto simple: { button_text, button_url }.
  • Objeto de configuração que não corresponde ao tipo retorna INSELL_CONFIG_TYPE_MISMATCH.

Path params

id
string
required
ID da ação (UUID).
insell_id
string
required
ID do insell (UUID).

Erros

HTTPCódigoQuando ocorre
404INSELL_NOT_FOUNDInsell inexistente, de outra ação ou de outra conta
400NO_FIELDS_TO_UPDATENenhum campo enviado
400demais códigos INSELL_*Mesmas regras de validação do criar
curl -u "pb_xxx:sk_xxx" -X PUT \
  -H "Content-Type: application/json" \
  -d '{
    "type": "iframe",
    "iframe": { "type": "fullscreen", "url": "https://insell.cliente.digital/" }
  }' \
  "https://api.sortify.com.br/v1/raffles/{id}/insells/{insell_id}"
{
  "success": true,
  "message": "Insell atualizado com sucesso",
  "data": {
    "id": "4b3a2c1d-0e9f-8a7b-6c5d-e4f3a2b1c0d9",
    "type": "iframe",
    "title": "Oferta parceira",
    "description": null,
    "display_order": 0,
    "iframe": { "type": "fullscreen", "url": "https://insell.cliente.digital/" },
    "is_active": true,
    "created_at": "2026-07-06T12:00:00.000Z",
    "updated_at": "2026-07-06T12:10:00.000Z"
  }
}