Skip to navigation

Replace the routing policy

Requires an organization owner. When authenticated with an API key, this operation requires api-admin. Inference only runs in regions that are visible to the organization, host the model and, when regions is non-empty, are listed there. ordered mode tries regions in the listed order. Omitted fields reset to their defaults (nearest, visible_regions, every visible region).

Authentication

AuthorizationBearer
Console user session or Mixlayer API key supplied as a Bearer token.

Path parameters

org_idstringRequired
Organization ID

Request

This endpoint expects an object.
fallbackenumOptional

Which regions may be tried after the first. Defaults to visible_regions.

Allowed values:
modeenumOptional

How the first execution region is chosen. Defaults to nearest.

Allowed values:
regionslist of strings or nullOptional

Regions the organization routes to, in priority order (used by ordered). Empty or null routes to every visible region.

Response

Inference routing policy replaced

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
500
Internal Server Error