Suggest values for one allocation parameter
GET /Platform/entities/{entity_type}/allocate-options
Suggest values for one allocation parameter.
Some allocation parameters take a value that only the provider knows,
such as a phone number that is available to buy. Their JSON schema in
allocate-schema carries options: "allocate"; call this as the
user types to list candidates, best first. Read-only: nothing is
bought or reserved, so a suggested value can still be taken by the
time you allocate.
Path parameters
entity_type: str. Entity class name, as forallocate.
Query parameters
param: str. Dotted path of the parameter insideparams, such asnumber.phone_number.query: optional str. What the user typed so far (for a phone number, the start of the number: area code first).values: optional dict. The form's currentparamsas a JSON object, so the suggestions match the other choices (country, area code).
Returns
AllocateOptionsResponse
options: optional List[AllocateOption]. Suggestions, best first.query: optional str. The query these suggestions answer; a client typing ahead drops a response whose query is no longer the latest.
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/{entity_type}/allocate-options" \
-H "Authorization: Bearer $HILUS_API_KEY"