Configure Algorithm distribution


                https://api.ocamba.com/v2/adex/zones/{zone_id}/distribute-search-algos
            

Configures the distribution for Algorithms


Name
Description
zone_idstringrequired
Unique zone identifier.


Example: zone_id=1000001

Name
Description
algo_distribution[ search-algo ]
Array of Search algorithm distribution objects.
Algorithm distribute
Name
Description
idnumber
Search algorithm id.


Example: 1000049

ratenumber
Describes the distribution rate of a Search algorithm. Minimum value is 0, maximum value is 100.


Example: 100

statusstring
Describes the status of a Search algorithm. Possible values are active and inactive.


Example: active

Possible values: active | inactive

distributenumber (int)
Describes the status of Algorithm distribution, 0 - distribution is off 1 - distribution is on.


Example: 1

Possible values: 0 | 1

204 - No Content
Arrow

tip
1 If you don't know the zone id, list the zones to find it.

2 If you don't know the search algorithm id, list the search algorithm to find it.
note
1 Sum of distribution rates across all active algorithms must be 100.

200 Arrow
{
  "distribute": 1,
  "search_algos": [
    {
      "id": "1000248",
      "rate": 23,
      "status": "active",
    },
    {
      "id": "1000249",
      "rate": 77,
      "status": "active"
    }
  ]
}