Create routing policy

Authentication

AuthorizationBearer

Your production key (prefixed mg_), sent as a bearer token.

Path parameters

customer_idstringRequired

Request

This endpoint expects an object.
namestringRequired
strategyenumRequired
Allowed values:
is_defaultbooleanOptional
allowed_providerslist of stringsOptional
allowed_modelslist of stringsOptional
priority_orderlist of objectsOptional

Response

Successful Response
idstring
namestring
strategyenum
is_defaultboolean
Used when a request names no explicit policy.
is_activeboolean

Whether the policy is usable. Deactivate (PATCH is_active=false) to stop routing through it without deleting it; a default policy cannot be inactive.

allowed_providerslist of strings or null
allowed_modelslist of strings or null
priority_orderlist of objects or null
created_atdatetime
modified_atdatetime