Skip to main content
PUT
/
v1
/
raffles
/
{id}
/
presells
/
{presell_id}
curl -u "pb_xxx:sk_xxx" -X PUT \
  -H "Content-Type: application/json" \
  -d '{
    "type": "iframe",
    "iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" }
  }' \
  "https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
{
  "success": true,
  "message": "Presell atualizado com sucesso",
  "data": {
    "id": "9e8d7c6b-5a4f-3e2d-1c0b-a9f8e7d6c5b4",
    "type": "iframe",
    "title": "Oferta parceira",
    "description": null,
    "display_order": 0,
    "iframe": { "type": "fullscreen", "url": "https://presell.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 presell, todos opcionais.
Regras de tipo e configuração (idênticas aos upsells):
  • 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 PRESELL_CONFIG_TYPE_MISMATCH.

Path params

id
string
required
ID da ação (UUID).
presell_id
string
required
ID do presell (UUID).

Erros

HTTPCódigoQuando ocorre
404PRESELL_NOT_FOUNDPresell inexistente, de outra ação ou de outra conta
400NO_FIELDS_TO_UPDATENenhum campo enviado
400demais códigos PRESELL_*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://presell.cliente.digital/" }
  }' \
  "https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
{
  "success": true,
  "message": "Presell atualizado com sucesso",
  "data": {
    "id": "9e8d7c6b-5a4f-3e2d-1c0b-a9f8e7d6c5b4",
    "type": "iframe",
    "title": "Oferta parceira",
    "description": null,
    "display_order": 0,
    "iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" },
    "is_active": true,
    "created_at": "2026-07-06T12:00:00.000Z",
    "updated_at": "2026-07-06T12:10:00.000Z"
  }
}