Skip to main content
POST
/
api
/
v2
/
workspaces
/
{workspaceId}
/
landers
/
{landerId}
/
variants
/
setWeights
Set variant weights (A/B traffic split)
curl --request POST \
  --url https://api.landerlab.dev/api/v2/workspaces/{workspaceId}/landers/{landerId}/variants/setWeights \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "weights": [
    {
      "id": 123,
      "weight": 1
    }
  ]
}
'
{
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.landerlab.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

API key with ll_live_ prefix

Path Parameters

landerId
integer
required

Body

application/json
weights
object[]
required

Response

Weights updated

message
string
required