Broadcasts

Pick an A/B test's winner

An exx.sh addition: while the A/B test runs, the variant the rest of the recipients get, at once.

POST
/broadcasts/{id}/winner

An exx.sh addition: while the A/B test runs, the variant the rest of the recipients get, at once.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
variant*integer

The winning variant's position (0 is the broadcast's own).

Range0 <= value

Response Body

Success

application/json
  1. response

The answer to an update.

id*string
Formatuuid
object*string
Example Request
curl -X POST 'https://api.exx.sh/broadcasts/497f6eca-6276-4993-bfeb-53cbbbba6f08/winner' \  -H 'Content-Type: application/json' \  -d '{  "variant": 0}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}