Create routing policy

Authentication

AuthorizationBearer
Your production key sent as a bearer token.

Path parameters

customer_idstringRequired

Request

This endpoint expects an object.
namestringRequired
strategyenumRequired
Allowed values:
descriptionstring or nullOptional

Optional free-text description

is_defaultbooleanOptional
allowed_providerslist of stringsOptional
allowed_modelslist of stringsOptional
priority_orderlist of objectsOptional
axisenumOptional

Optimization axis for INTELLIGENT policies (the objective the router optimizes for). Must be omitted for PRIORITY. Defaults to COST when omitted.

Allowed values:

Response

Successful Response
idstringOptional
namestringOptional
descriptionstring or nullOptional

Optional free-text description

strategyenumOptional
is_defaultbooleanOptional
Used when a request names no explicit policy.
allowed_providerslist of strings or nullOptional
allowed_modelslist of strings or nullOptional
priority_orderlist of objects or nullOptional
axisenum or nullOptional

Optimization axis the router optimizes for. Set for INTELLIGENT policies; null for PRIORITY.

created_atdatetimeOptional
modified_atdatetimeOptional