Campanhas

Definir variante vencedora

Changed on

Define o vencedor (decidedReason = FORCED_MANUAL) e libera os contatos que aguardavam o resultado. Permissão: CAMPAIGNS_SEND.

post/v1/campaigns/{campaignId}/ab-test/winner

Request

Path parameters

campaignIdstring uuid required

ID da campanha.

Request body

winner'A' | 'B' required

Response

Vencedor aplicado

idstring uuid nullable
campaignIdstring uuid nullable
variantATemplateNamestring required
variantBTemplateNamestring required
metricstring required
samplePctinteger required
splitPctinteger required
decisionWindowMinutesinteger required
autopilotboolean required
winner'A' | 'B' nullable
decidedAtstring date-time nullable
decidedReasonstring nullable
pValuenumber nullable
relativeLiftPctnumber nullable
variantAMetricsJsonstring nullable

JSON serializado em string.

variantBMetricsJsonstring nullable
createdAtstring date-time nullable

Changes

    • info

      api tag Campanhas added

    • info

      api tag campaigns removed

    • info

      added the non-success response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response's property type changed from object to string for status

    • breaking

      the response's property format changed from float to no format for status

    • breaking

      the response's property format changed from float to no format for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status