Skip to content
Hayonix

API reference · Schema

EndpointTrafficSplitRequest

Share of requests per deployment; weights sum to 100 (unlisted ones get 0)

  • deploymentsarray of objectrequired

    Each deployment of the endpoint at most once; deployments not listed get weight 0

    1–4 items

    Show 2 fields of deployments
    • deployment_idstringrequired

      ID of the deployment

      ID with prefix dpl_

    • weightintegerrequired

      Percentage of requests this deployment receives (0–100)

      0–100

Example
{
  "deployments": [
    {
      "deployment_id": "dpl_01jc5zq4m8k3v6x9t2w7r0b1e4",
      "weight": 50
    },
    {
      "deployment_id": "dpl_01jc5zq4m8k3v6x9t2w7r0b1e5",
      "weight": 50
    }
  ]
}

Used by