Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization’s with a management key, your personal one otherwise (a personal policy may share a name with the organization’s and then wins on your keys). Send If-Match: "<version>" to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: "0" creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization’s policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization’s can be read.
A management key (mgmt-eden...) to manage the organization's routing policies, or your own API key (sk-eden...) or session token to manage your personal ones, sent as Authorization: Bearer <key>.
Optional, and only ever the scope your credential writes: organization with a management key, user with your own API key or session token. Naming the other one is refused (403) rather than silently written elsewhere.
The body of a PUT on a routing policy: what the policy tries and how, its defaults,
its locked fields and its last-resort fallbacks. A body needs targets: a policy applies to
a request that names it, and one without targets would have nothing to try.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Eden AI Documentation","colors":{"primary":"#3d7cc9","light":"#6aa3e0","dark":"#2a5fa8"},"logo":{"light":"https://mintcdn.com/edenai/UmEpehfvjqdFrnPI/logo/dark.svg?fit=max\u0026auto=format\u0026n=UmEpehfvjqdFrnPI\u0026q=85\u0026s=d255714c3107aff5726601b49d305d9d","dark":"https://mintcdn.com/edenai/5FFg8A2lL0jCIrLn/logo/light.svg?fit=max\u0026auto=format\u0026n=5FFg8A2lL0jCIrLn\u0026q=85\u0026s=b6712983028369a6295728edc7d01664","href":"https://edenai.co"},"favicon":{"light":"https://mintcdn.com/edenai/UmEpehfvjqdFrnPI/images/favicon-dark.png?fit=max\u0026auto=format\u0026n=UmEpehfvjqdFrnPI\u0026q=85\u0026s=db4a5c60d344c859d15d8a894517422c","dark":"https://mintcdn.com/edenai/5FFg8A2lL0jCIrLn/images/favicon.png?fit=max\u0026auto=format\u0026n=5FFg8A2lL0jCIrLn\u0026q=85\u0026s=f807aac28a69e31f718485f7100419de"},"navbar":{"links":[{"href":"#chat","label":"Chat with us"},{"href":"https://edenai.co/","label":"Website"},{"href":"https://app-edenai.instatus.com/","label":"Status"}],"primary":{"type":"button","label":"To the App","href":"https://app.edenai.run/"}},"footer":{"socials":{"github":"https://github.com/edenai","linkedin":"https://www.linkedin.com/company/edenai","discord":"https://discord.gg/VYwTbMQc8u","youtube":"https://www.youtube.com/@edenai2254"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://www.edenai.co/privacy"},{"label":"Manage cookies","href":"#manage-cookies"}]}]},"seo":{"metatags":{"canonical":"https://www.edenai.co/docs"}},"integrations":{"hotjar":{"hjid":"6654925","hjsv":"6"},"intercom":{"appId":"we8gfv17"},"cookies":{"key":"edenai-cookie-consent","value":"accepted"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"edenai","hasAudioNarration":false,"actualSubdomain":"edenai","customDomains":["www.edenai.co"],"gitSource":{"type":"github","owner":"edenai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true,"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af3c576039e3802f23b7414","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"V3 Documentation","count":121},{"language":"default","tag":"V3 API Reference","count":77},{"language":"default","tag":"AI Features","count":57},{"language":"default","tag":"Expert Models","count":41},{"language":"default","tag":"Integrations","count":32},{"language":"default","tag":"LLMs","count":20},{"language":"default","tag":"Organization Management","count":20},{"language":"default","tag":"Image Features","count":11},{"language":"default","tag":"Coding Agents","count":11},{"language":"default","tag":"General","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":false,"showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"cookie-consent.css","content":"#cc-main{--cc-btn-primary-bg: #3d7cc9;--cc-btn-primary-hover-bg: #2a5fa8;--cc-btn-primary-border-color: #3d7cc9;--cc-btn-primary-hover-border-color: #2a5fa8;--cc-toggle-on-bg: #3d7cc9;--cc-link-color: #3d7cc9}"}],"page":{"pagePath":"api-reference/routing-policies/create-or-replace-a-routing-policy","slug":"/api-reference/routing-policies/create-or-replace-a-routing-policy","pageMetadata":{"title":"Create or replace a routing policy","description":"Creates the policy (201) or replaces it whole (200), incrementing `version`, in the scope of your credential: the organization's with a management key, your personal one otherwise (a personal policy may share a name with the organization's and then wins on your keys). Send `If-Match: \"\u003cversion>\"` to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and `If-Match: \"0\"` creates only when nothing is stored yet). A body that breaks a rule is a 422 whose `error.fields` names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization's policies are managed (`manage:read` to read, `manage:write` to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json put /v3/manage/routing-policies/{name}/","href":"/api-reference/routing-policies/create-or-replace-a-routing-policy","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates the policy (201) or replaces it whole (200), incrementing \", _jsx(_components.code, {\n children: \"version\"\n }), \", in the scope of your credential: the organization’s with a management key, your personal one otherwise (a personal policy may share a name with the organization’s and then wins on your keys). Send \", _jsx(_components.code, {\n children: \"If-Match: \\\"\u003cversion>\\\"\"\n }), \" to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and \", _jsx(_components.code, {\n children: \"If-Match: \\\"0\\\"\"\n }), \" creates only when nothing is stored yet). A body that breaks a rule is a 422 whose \", _jsx(_components.code, {\n children: \"error.fields\"\n }), \" names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization’s policies are managed (\", _jsx(_components.code, {\n children: \"manage:read\"\n }), \" to read, \", _jsx(_components.code, {\n children: \"manage:write\"\n }), \" to write). With your own API key or session token, your personal policies are managed, and the organization’s can be read.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create or replace a routing policy","description":"Creates the policy (201) or replaces it whole (200), incrementing `version`, in the scope of your credential: the organization's with a management key, your personal one otherwise (a personal policy may share a name with the organization's and then wins on your keys). Send `If-Match: \"\u003cversion>\"` to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and `If-Match: \"0\"` creates only when nothing is stored yet). A body that breaks a rule is a 422 whose `error.fields` names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization's policies are managed (`manage:read` to read, `manage:write` to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json put /v3/manage/routing-policies/{name}/","href":"/api-reference/routing-policies/create-or-replace-a-routing-policy","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/edenai/d7b6320a7822e7bc/cookie-consent.js","/docs/_mintlify/custom/edenai/1e452f31ce3e9914/intercom-chat.js"],"openApiReferenceData":{"operation":{"operationId":"manage_routing_policies_update","description":"Creates the policy (201) or replaces it whole (200), incrementing `version`, in the scope of your credential: the organization's with a management key, your personal one otherwise (a personal policy may share a name with the organization's and then wins on your keys). Send `If-Match: \"\u003cversion>\"` to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and `If-Match: \"0\"` creates only when nothing is stored yet). A body that breaks a rule is a 422 whose `error.fields` names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization's policies are managed (`manage:read` to read, `manage:write` to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.","summary":"Create or replace a routing policy","parameters":["f6dd6e75-f698-40ab-b64f-f7c6ef917a09","30bc4714-8d31-40db-8500-759f540a49a5"],"tags":["Routing Policies"],"requestBody":"7ce3f80d-fc10-4930-9189-c97858200863","security":["1b2a7a32-49ed-451e-9bbf-2161422f32ee"],"responses":{"200":"0d747859-a6c6-49d4-b550-da51acda1514","201":"817d41aa-14ff-47d7-8386-c568be50a016"},"method":"put","type":"path","servers":["47a55832-9465-4bfe-ada9-88eeaa13c917"],"path":"/v3/manage/routing-policies/{name}/","baseUrlOptions":["https://api.edenai.run"],"title":"Create or replace a routing policy","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f6dd6e75-f698-40ab-b64f-f7c6ef917a09":{"in":"path","name":"name","schema":{"type":"string","isRequired":true,"description":"The policy's handle, as called with `policy/{name}`.","uniqueKey":"","typeLabel":"string"},"description":"The policy's handle, as called with `policy/{name}`.","required":true},"30bc4714-8d31-40db-8500-759f540a49a5":{"in":"query","name":"scope","schema":{"type":"string","enum":["organization","user"],"description":"Optional, and only ever the scope your credential writes: `organization` with a management key, `user` with your own API key or session token. Naming the other one is refused (403) rather than silently written elsewhere.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Optional, and only ever the scope your credential writes: `organization` with a management key, `user` with your own API key or session token. Naming the other one is refused (403) rather than silently written elsewhere."}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"The body of a `PUT` on a routing policy: what the policy tries and how, its defaults,\nits locked fields and its last-resort fallbacks. A body needs targets: a policy applies to\na request that names it, and one without targets would have nothing to try.","properties":{"strategy":{"enum":["fallback","load_balance","cheapest","fastest"],"type":"string","description":"* `fallback` - Fallback\n* `load_balance` - Load balance\n* `cheapest` - Cheapest\n* `fastest` - Fastest","isRequired":true,"uniqueKey":"strategy","typeLabel":"enum\u003cstring>"},"targets":{"type":"array","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"targets.items.[INDEX].model","typeLabel":"string"},"weight":{"type":"integer","maximum":100,"minimum":1,"uniqueKey":"targets.items.[INDEX].weight","typeLabel":"integer"},"retries":{"type":"integer","maximum":3,"minimum":0,"uniqueKey":"targets.items.[INDEX].retries","typeLabel":"integer"},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":16,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"targets.items.[INDEX].routing","typeLabel":"object"},"region":{"type":"string","minLength":1,"uniqueKey":"targets.items.[INDEX].region","typeLabel":"string"}},"required":["model"],"uniqueKey":"targets.items.[INDEX]","typeLabel":"object"},"maxItems":32,"minItems":1,"isRequired":true,"uniqueKey":"targets","typeLabel":"object[]"},"description":{"type":"string","default":"","maxLength":500,"uniqueKey":"description","typeLabel":"string"},"enabled":{"type":"boolean","default":true,"uniqueKey":"enabled","typeLabel":"boolean"},"defaults":{"type":"object","description":"Settings applied to every target unless the target overrides them.","properties":{"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"defaults.routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"defaults.routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"defaults.routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"defaults.routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"defaults.routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"defaults.routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"defaults.routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"defaults.routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"defaults.routing","typeLabel":"object"},"retries":{"type":"integer","maximum":3,"minimum":0,"default":0,"uniqueKey":"defaults.retries","typeLabel":"integer"}},"uniqueKey":"defaults","typeLabel":"object"},"lock":{"type":"array","items":{"enum":["sort","sticky","allow_fallbacks","allowed_providers","ignored_providers","order","max_price","zero_data_retention","region"],"type":"string","description":"* `sort` - sort\n* `sticky` - sticky\n* `allow_fallbacks` - allow_fallbacks\n* `allowed_providers` - allowed_providers\n* `ignored_providers` - ignored_providers\n* `order` - order\n* `max_price` - max_price\n* `zero_data_retention` - zero_data_retention\n* `region` - region","uniqueKey":"lock.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"lock","typeLabel":"enum\u003cstring>[]"},"fallbacks":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"fallbacks.items.[INDEX]","typeLabel":"string"},"maxItems":7,"uniqueKey":"fallbacks","typeLabel":"string[]"}},"required":["strategy","targets"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"targets":[{"model":"\u003cstring>","weight":50,"retries":1,"routing":{"sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"region":"\u003cstring>"}],"description":"","enabled":true,"defaults":{"routing":{"sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"retries":0},"lock":[],"fallbacks":["\u003cstring>"]}}},"exampleType":"generated"},"application/x-www-form-urlencoded":{"schema":{"type":"object","description":"The body of a `PUT` on a routing policy: what the policy tries and how, its defaults,\nits locked fields and its last-resort fallbacks. A body needs targets: a policy applies to\na request that names it, and one without targets would have nothing to try.","properties":{"strategy":{"enum":["fallback","load_balance","cheapest","fastest"],"type":"string","description":"* `fallback` - Fallback\n* `load_balance` - Load balance\n* `cheapest` - Cheapest\n* `fastest` - Fastest","isRequired":true,"uniqueKey":"strategy","typeLabel":"enum\u003cstring>"},"targets":{"type":"array","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"targets.items.[INDEX].model","typeLabel":"string"},"weight":{"type":"integer","maximum":100,"minimum":1,"uniqueKey":"targets.items.[INDEX].weight","typeLabel":"integer"},"retries":{"type":"integer","maximum":3,"minimum":0,"uniqueKey":"targets.items.[INDEX].retries","typeLabel":"integer"},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":16,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"targets.items.[INDEX].routing","typeLabel":"object"},"region":{"type":"string","minLength":1,"uniqueKey":"targets.items.[INDEX].region","typeLabel":"string"}},"required":["model"],"uniqueKey":"targets.items.[INDEX]","typeLabel":"object"},"maxItems":32,"minItems":1,"isRequired":true,"uniqueKey":"targets","typeLabel":"object[]"},"description":{"type":"string","default":"","maxLength":500,"uniqueKey":"description","typeLabel":"string"},"enabled":{"type":"boolean","default":true,"uniqueKey":"enabled","typeLabel":"boolean"},"defaults":{"type":"object","description":"Settings applied to every target unless the target overrides them.","properties":{"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"defaults.routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"defaults.routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"defaults.routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"defaults.routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"defaults.routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"defaults.routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"defaults.routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"defaults.routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"defaults.routing","typeLabel":"object"},"retries":{"type":"integer","maximum":3,"minimum":0,"default":0,"uniqueKey":"defaults.retries","typeLabel":"integer"}},"uniqueKey":"defaults","typeLabel":"object"},"lock":{"type":"array","items":{"enum":["sort","sticky","allow_fallbacks","allowed_providers","ignored_providers","order","max_price","zero_data_retention","region"],"type":"string","description":"* `sort` - sort\n* `sticky` - sticky\n* `allow_fallbacks` - allow_fallbacks\n* `allowed_providers` - allowed_providers\n* `ignored_providers` - ignored_providers\n* `order` - order\n* `max_price` - max_price\n* `zero_data_retention` - zero_data_retention\n* `region` - region","uniqueKey":"lock.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"lock","typeLabel":"enum\u003cstring>[]"},"fallbacks":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"fallbacks.items.[INDEX]","typeLabel":"string"},"maxItems":7,"uniqueKey":"fallbacks","typeLabel":"string[]"}},"required":["strategy","targets"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"targets":[{"model":"\u003cstring>","weight":50,"retries":1,"routing":{"sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"region":"\u003cstring>"}],"description":"","enabled":true,"defaults":{"routing":{"sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"retries":0},"lock":[],"fallbacks":["\u003cstring>"]}}},"exampleType":"generated"},"multipart/form-data":{"schema":{"type":"object","description":"The body of a `PUT` on a routing policy: what the policy tries and how, its defaults,\nits locked fields and its last-resort fallbacks. A body needs targets: a policy applies to\na request that names it, and one without targets would have nothing to try.","properties":{"strategy":{"enum":["fallback","load_balance","cheapest","fastest"],"type":"string","description":"* `fallback` - Fallback\n* `load_balance` - Load balance\n* `cheapest` - Cheapest\n* `fastest` - Fastest","isRequired":true,"uniqueKey":"strategy","typeLabel":"enum\u003cstring>"},"targets":{"type":"array","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"targets.items.[INDEX].model","typeLabel":"string"},"weight":{"type":"integer","maximum":100,"minimum":1,"uniqueKey":"targets.items.[INDEX].weight","typeLabel":"integer"},"retries":{"type":"integer","maximum":3,"minimum":0,"uniqueKey":"targets.items.[INDEX].retries","typeLabel":"integer"},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"targets.items.[INDEX].routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"targets.items.[INDEX].routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":16,"uniqueKey":"targets.items.[INDEX].routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"targets.items.[INDEX].routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.items.[INDEX].routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.items.[INDEX].routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"targets.items.[INDEX].routing","typeLabel":"object"},"region":{"type":"string","minLength":1,"uniqueKey":"targets.items.[INDEX].region","typeLabel":"string"}},"required":["model"],"uniqueKey":"targets.items.[INDEX]","typeLabel":"object"},"maxItems":32,"minItems":1,"isRequired":true,"uniqueKey":"targets","typeLabel":"object[]"},"description":{"type":"string","default":"","maxLength":500,"uniqueKey":"description","typeLabel":"string"},"enabled":{"type":"boolean","default":true,"uniqueKey":"enabled","typeLabel":"boolean"},"defaults":{"type":"object","description":"Settings applied to every target unless the target overrides them.","properties":{"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"defaults.routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"defaults.routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"defaults.routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"defaults.routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"defaults.routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"uniqueKey":"defaults.routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"defaults.routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"defaults.routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"defaults.routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"defaults.routing","typeLabel":"object"},"retries":{"type":"integer","maximum":3,"minimum":0,"default":0,"uniqueKey":"defaults.retries","typeLabel":"integer"}},"uniqueKey":"defaults","typeLabel":"object"},"lock":{"type":"array","items":{"enum":["sort","sticky","allow_fallbacks","allowed_providers","ignored_providers","order","max_price","zero_data_retention","region"],"type":"string","description":"* `sort` - sort\n* `sticky` - sticky\n* `allow_fallbacks` - allow_fallbacks\n* `allowed_providers` - allowed_providers\n* `ignored_providers` - ignored_providers\n* `order` - order\n* `max_price` - max_price\n* `zero_data_retention` - zero_data_retention\n* `region` - region","uniqueKey":"lock.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"lock","typeLabel":"enum\u003cstring>[]"},"fallbacks":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"fallbacks.items.[INDEX]","typeLabel":"string"},"maxItems":7,"uniqueKey":"fallbacks","typeLabel":"string[]"}},"required":["strategy","targets"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"targets":[{"model":"\u003cstring>","weight":50,"retries":1,"routing":{"sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"region":"\u003cstring>"}],"description":"","enabled":true,"defaults":{"routing":{"sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"retries":0},"lock":[],"fallbacks":["\u003cstring>"]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"0d747859-a6c6-49d4-b550-da51acda1514":{"content":{"application/json":{"schema":{"type":"object","description":"A routing policy as the management API returns it.","properties":{"name":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"scope":{"type":"string","description":"`organization` for a shared policy, `user` for a personal one.\n\n* `organization` - Organization\n* `user` - User","enum":["organization","user"],"isRequired":true,"uniqueKey":"scope","typeLabel":"enum\u003cstring>"},"description":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"description","typeLabel":"string"},"enabled":{"type":"boolean","readOnly":true,"isRequired":true,"uniqueKey":"enabled","typeLabel":"boolean"},"strategy":{"oneOf":[{"type":"string","description":"* `fallback` - Fallback\n* `load_balance` - Load balance\n* `cheapest` - Cheapest\n* `fastest` - Fastest","enum":["fallback","load_balance","cheapest","fastest"],"isRequired":true,"uniqueKey":"strategy.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"isRequired":true,"uniqueKey":"strategy.oneOf.1","typeLabel":"any"},{"type":"null","isRequired":true,"uniqueKey":"strategy.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"strategy","typeLabel":"enum\u003cstring> | any | null"},"targets":{"oneOf":[{"type":"array","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string","isRequired":true,"uniqueKey":"targets.oneOf.0.items.[INDEX].model","typeLabel":"string"},"weight":{"type":"integer","maximum":100,"minimum":1,"uniqueKey":"targets.oneOf.0.items.[INDEX].weight","typeLabel":"integer"},"retries":{"type":"integer","maximum":3,"minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].retries","typeLabel":"integer"},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"maxItems":16,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing","typeLabel":"object"},"region":{"type":"string","uniqueKey":"targets.oneOf.0.items.[INDEX].region","typeLabel":"string"}},"required":["model"],"uniqueKey":"targets.oneOf.0.items.[INDEX]","typeLabel":"object"},"readOnly":true,"isRequired":true,"uniqueKey":"targets.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string"},"weight":{"type":"integer","maximum":100,"minimum":1},"retries":{"type":"integer","maximum":3,"minimum":0},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"]},{"enum":[null]},{"type":"null"}]},"sticky":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"allow_fallbacks":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64}},{"type":"null","items":{"type":"string","maxLength":64}}]},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64}},{"type":"null","items":{"type":"string","maxLength":64}}]},"order":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64},"maxItems":16},{"type":"null","items":{"type":"string","maxLength":64},"maxItems":16}]},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0},{"type":"null","format":"double","minimum":0}]},"output":{"oneOf":[{"type":"number","format":"double","minimum":0},{"type":"null","format":"double","minimum":0}]}}},{"type":"null"}]},"zero_data_retention":{"oneOf":[{"type":"boolean"},{"type":"null"}]}}},"region":{"type":"string"}},"required":["model"]},"readOnly":true,"isRequired":true,"uniqueKey":"targets.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"targets","typeLabel":"object[] | null"},"defaults":{"type":"object","description":"Settings applied to every target unless the target overrides them.","properties":{"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"defaults.routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"defaults.routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"defaults.routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"defaults.routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"defaults.routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"defaults.routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"defaults.routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"defaults.routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"defaults.routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"defaults.routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"defaults.routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"defaults.routing","typeLabel":"object"},"retries":{"type":"integer","maximum":3,"minimum":0,"default":0,"uniqueKey":"defaults.retries","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"defaults","typeLabel":"object"},"lock":{"type":"array","items":{"enum":["sort","sticky","allow_fallbacks","allowed_providers","ignored_providers","order","max_price","zero_data_retention","region"],"type":"string","description":"* `sort` - sort\n* `sticky` - sticky\n* `allow_fallbacks` - allow_fallbacks\n* `allowed_providers` - allowed_providers\n* `ignored_providers` - ignored_providers\n* `order` - order\n* `max_price` - max_price\n* `zero_data_retention` - zero_data_retention\n* `region` - region","uniqueKey":"lock.items.[INDEX]","typeLabel":"enum\u003cstring>"},"readOnly":true,"isRequired":true,"uniqueKey":"lock","typeLabel":"enum\u003cstring>[]"},"fallbacks":{"type":"array","items":{"type":"string","uniqueKey":"fallbacks.items.[INDEX]","typeLabel":"string"},"readOnly":true,"isRequired":true,"uniqueKey":"fallbacks","typeLabel":"string[]"},"version":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"version","typeLabel":"integer"},"etag":{"type":"string","readOnly":true,"description":"The version, as the `If-Match` header expects it.","isRequired":true,"uniqueKey":"etag","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"created_by":{"oneOf":[{"type":"string","format":"email","readOnly":true,"description":"Email of the creator, or null for an API write.","isRequired":true,"uniqueKey":"created_by.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","readOnly":true,"description":"Email of the creator, or null for an API write.","isRequired":true,"uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by","typeLabel":"string\u003cemail> | null"},"updated_by":{"oneOf":[{"type":"string","format":"email","readOnly":true,"description":"Email of the last editor, or null for an API write.","isRequired":true,"uniqueKey":"updated_by.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","readOnly":true,"description":"Email of the last editor, or null for an API write.","isRequired":true,"uniqueKey":"updated_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"updated_by","typeLabel":"string\u003cemail> | null"}},"required":["created_at","created_by","defaults","description","enabled","etag","fallbacks","lock","name","scope","strategy","targets","updated_at","updated_by","version"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","scope":"organization","description":"\u003cstring>","enabled":true,"strategy":"fallback","targets":[{"model":"\u003cstring>","weight":50,"retries":1,"routing":{"sort":"cost","sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"region":"\u003cstring>"}],"defaults":{"routing":{"sort":"cost","sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"retries":0},"lock":["sort"],"fallbacks":["\u003cstring>"],"version":123,"etag":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","created_by":"jsmith@example.com","updated_by":"jsmith@example.com"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"817d41aa-14ff-47d7-8386-c568be50a016":{"content":{"application/json":{"schema":{"type":"object","description":"A routing policy as the management API returns it.","properties":{"name":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"scope":{"type":"string","description":"`organization` for a shared policy, `user` for a personal one.\n\n* `organization` - Organization\n* `user` - User","enum":["organization","user"],"isRequired":true,"uniqueKey":"scope","typeLabel":"enum\u003cstring>"},"description":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"description","typeLabel":"string"},"enabled":{"type":"boolean","readOnly":true,"isRequired":true,"uniqueKey":"enabled","typeLabel":"boolean"},"strategy":{"oneOf":[{"type":"string","description":"* `fallback` - Fallback\n* `load_balance` - Load balance\n* `cheapest` - Cheapest\n* `fastest` - Fastest","enum":["fallback","load_balance","cheapest","fastest"],"isRequired":true,"uniqueKey":"strategy.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"isRequired":true,"uniqueKey":"strategy.oneOf.1","typeLabel":"any"},{"type":"null","isRequired":true,"uniqueKey":"strategy.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"strategy","typeLabel":"enum\u003cstring> | any | null"},"targets":{"oneOf":[{"type":"array","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string","isRequired":true,"uniqueKey":"targets.oneOf.0.items.[INDEX].model","typeLabel":"string"},"weight":{"type":"integer","maximum":100,"minimum":1,"uniqueKey":"targets.oneOf.0.items.[INDEX].weight","typeLabel":"integer"},"retries":{"type":"integer","maximum":3,"minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].retries","typeLabel":"integer"},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"maxItems":16,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"targets.oneOf.0.items.[INDEX].routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"targets.oneOf.0.items.[INDEX].routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"targets.oneOf.0.items.[INDEX].routing","typeLabel":"object"},"region":{"type":"string","uniqueKey":"targets.oneOf.0.items.[INDEX].region","typeLabel":"string"}},"required":["model"],"uniqueKey":"targets.oneOf.0.items.[INDEX]","typeLabel":"object"},"readOnly":true,"isRequired":true,"uniqueKey":"targets.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"One candidate model and its per-target overrides. A plain string is ``{\"model\": …}``.","properties":{"model":{"type":"string"},"weight":{"type":"integer","maximum":100,"minimum":1},"retries":{"type":"integer","maximum":3,"minimum":0},"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"]},{"enum":[null]},{"type":"null"}]},"sticky":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"allow_fallbacks":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64}},{"type":"null","items":{"type":"string","maxLength":64}}]},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64}},{"type":"null","items":{"type":"string","maxLength":64}}]},"order":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64},"maxItems":16},{"type":"null","items":{"type":"string","maxLength":64},"maxItems":16}]},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0},{"type":"null","format":"double","minimum":0}]},"output":{"oneOf":[{"type":"number","format":"double","minimum":0},{"type":"null","format":"double","minimum":0}]}}},{"type":"null"}]},"zero_data_retention":{"oneOf":[{"type":"boolean"},{"type":"null"}]}}},"region":{"type":"string"}},"required":["model"]},"readOnly":true,"isRequired":true,"uniqueKey":"targets.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"targets","typeLabel":"object[] | null"},"defaults":{"type":"object","description":"Settings applied to every target unless the target overrides them.","properties":{"routing":{"type":"object","description":"The request ``routing`` object as a policy stores it. A ``null`` means unset: the\nfield then comes from the request or the platform default.","properties":{"sort":{"oneOf":[{"type":"string","description":"* `cost` - cost\n* `speed` - speed\n* `latency` - latency\n* `exact` - exact","enum":["cost","speed","latency","exact"],"uniqueKey":"defaults.routing.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"uniqueKey":"defaults.routing.sort.oneOf.1","typeLabel":"any"},{"type":"null","uniqueKey":"defaults.routing.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"defaults.routing.sort","typeLabel":"enum\u003cstring> | any | null"},"sticky":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.sticky.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.sticky.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.sticky","typeLabel":"boolean | null"},"allow_fallbacks":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allow_fallbacks","typeLabel":"boolean | null"},"allowed_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"defaults.routing.allowed_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.allowed_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"defaults.routing.allowed_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.allowed_providers","typeLabel":"string[] | null"},"ignored_providers":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"defaults.routing.ignored_providers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"defaults.routing.ignored_providers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"uniqueKey":"defaults.routing.ignored_providers.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.ignored_providers","typeLabel":"string[] | null"},"order":{"oneOf":[{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"defaults.routing.order.oneOf.0.items.[INDEX]","typeLabel":"string"},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","maxLength":64},"maxItems":16,"uniqueKey":"defaults.routing.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.order","typeLabel":"string[] | null"},"max_price":{"oneOf":[{"type":"object","description":"A per-million-token ceiling; at least one of the two sides.","properties":{"input":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.input","typeLabel":"number\u003cdouble> | null"},"output":{"oneOf":[{"type":"number","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","minimum":0,"uniqueKey":"defaults.routing.max_price.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price.oneOf.0.output","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"defaults.routing.max_price.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"defaults.routing.max_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.max_price","typeLabel":"object | null"},"zero_data_retention":{"oneOf":[{"type":"boolean","uniqueKey":"defaults.routing.zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"defaults.routing.zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaults.routing.zero_data_retention","typeLabel":"boolean | null"}},"uniqueKey":"defaults.routing","typeLabel":"object"},"retries":{"type":"integer","maximum":3,"minimum":0,"default":0,"uniqueKey":"defaults.retries","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"defaults","typeLabel":"object"},"lock":{"type":"array","items":{"enum":["sort","sticky","allow_fallbacks","allowed_providers","ignored_providers","order","max_price","zero_data_retention","region"],"type":"string","description":"* `sort` - sort\n* `sticky` - sticky\n* `allow_fallbacks` - allow_fallbacks\n* `allowed_providers` - allowed_providers\n* `ignored_providers` - ignored_providers\n* `order` - order\n* `max_price` - max_price\n* `zero_data_retention` - zero_data_retention\n* `region` - region","uniqueKey":"lock.items.[INDEX]","typeLabel":"enum\u003cstring>"},"readOnly":true,"isRequired":true,"uniqueKey":"lock","typeLabel":"enum\u003cstring>[]"},"fallbacks":{"type":"array","items":{"type":"string","uniqueKey":"fallbacks.items.[INDEX]","typeLabel":"string"},"readOnly":true,"isRequired":true,"uniqueKey":"fallbacks","typeLabel":"string[]"},"version":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"version","typeLabel":"integer"},"etag":{"type":"string","readOnly":true,"description":"The version, as the `If-Match` header expects it.","isRequired":true,"uniqueKey":"etag","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"created_by":{"oneOf":[{"type":"string","format":"email","readOnly":true,"description":"Email of the creator, or null for an API write.","isRequired":true,"uniqueKey":"created_by.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","readOnly":true,"description":"Email of the creator, or null for an API write.","isRequired":true,"uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by","typeLabel":"string\u003cemail> | null"},"updated_by":{"oneOf":[{"type":"string","format":"email","readOnly":true,"description":"Email of the last editor, or null for an API write.","isRequired":true,"uniqueKey":"updated_by.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","readOnly":true,"description":"Email of the last editor, or null for an API write.","isRequired":true,"uniqueKey":"updated_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"updated_by","typeLabel":"string\u003cemail> | null"}},"required":["created_at","created_by","defaults","description","enabled","etag","fallbacks","lock","name","scope","strategy","targets","updated_at","updated_by","version"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","scope":"organization","description":"\u003cstring>","enabled":true,"strategy":"fallback","targets":[{"model":"\u003cstring>","weight":50,"retries":1,"routing":{"sort":"cost","sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"region":"\u003cstring>"}],"defaults":{"routing":{"sort":"cost","sticky":true,"allow_fallbacks":true,"allowed_providers":["\u003cstring>"],"ignored_providers":["\u003cstring>"],"order":["\u003cstring>"],"max_price":{"input":1,"output":1},"zero_data_retention":true},"retries":0},"lock":["sort"],"fallbacks":["\u003cstring>"],"version":123,"etag":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","created_by":"jsmith@example.com","updated_by":"jsmith@example.com"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"security":{"1b2a7a32-49ed-451e-9bbf-2161422f32ee":{"ManagementKeyOrUserAuth":{"type":"http","scheme":"bearer","bearerFormat":"opaque","description":"A management key (`mgmt-eden...`) to manage the organization's routing policies, or your own API key (`sk-eden...`) or session token to manage your personal ones, sent as `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"ManagementKeyOrUserAuth"}}},"servers":{"47a55832-9465-4bfe-ada9-88eeaa13c917":{"url":"https://api.edenai.run"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"opaque","description":"A management key (`mgmt-eden...`) to manage the organization's routing policies, or your own API key (`sk-eden...`) or session token to manage your personal ones, sent as `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"ManagementKeyOrUserAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A management key (`mgmt-eden...`) to manage the organization's routing policies, or your own API key (`sk-eden...`) or session token to manage your personal ones, sent as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ManagementKeyOrUserAuth","name":"Authorization"}],"title":"ManagementKeyOrUserAuth"}]},"originalFileLocation":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json"},"subdomain":"edenai","siteName":"Eden AI Documentation","title":"Create or replace a routing policy - Eden AI Documentation","navMaps":{"firstHrefInVersion":{"V3":{"href":"/api-reference/routing-policies/create-or-replace-a-routing-policy","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T14:49:05.516Z","originalFileLocation":"api-reference/routing-policies/create-or-replace-a-routing-policy.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization\u0026#x27;s with a management key, your personal one otherwise (a personal policy may share a name with the organization\u0026#x27;s and then wins on your keys). Send If-Match: \u0026quot;\u0026quot; to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: \u0026quot;0\u0026quot; creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization\u0026#x27;s policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization\u0026#x27;s can be read.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Eden AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create or replace a routing policy - Eden AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization\u0026#x27;s with a management key, your personal one otherwise (a personal policy may share a name with the organization\u0026#x27;s and then wins on your keys). Send If-Match: \u0026quot;\u0026quot; to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: \u0026quot;0\u0026quot; creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization\u0026#x27;s policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization\u0026#x27;s can be read.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Eden AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://edenai.mintlify.site/docs/_mintlify/api/og/v2?division=Routing+Policies\u0026amp;title=Create+or+replace+a+routing+policy\u0026amp;description=Creates+the+policy+%28201%29+or+replaces+it+whole+%28200%29%2C+incrementing+%60version%60%2C+in+the+scope+of+your+credential%3A+the+organization%27s+with+a+management+key%2C+your+per\u0026amp;theme=120b02b6627196279f8df944\u0026amp;signature=fdcf6c665aa73329be1fbc672a258cc00fa0dd20e19e0ce09b9056363c522a71\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create or replace a routing policy - Eden AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization\u0026#x27;s with a management key, your personal one otherwise (a personal policy may share a name with the organization\u0026#x27;s and then wins on your keys). Send If-Match: \u0026quot;\u0026quot; to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: \u0026quot;0\u0026quot; creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization\u0026#x27;s policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization\u0026#x27;s can be read.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://edenai.mintlify.site/docs/_mintlify/api/og/v2?division=Routing+Policies\u0026amp;title=Create+or+replace+a+routing+policy\u0026amp;description=Creates+the+policy+%28201%29+or+replaces+it+whole+%28200%29%2C+incrementing+%60version%60%2C+in+the+scope+of+your+credential%3A+the+organization%27s+with+a+management+key%2C+your+per\u0026amp;theme=120b02b6627196279f8df944\u0026amp;signature=fdcf6c665aa73329be1fbc672a258cc00fa0dd20e19e0ce09b9056363c522a71\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/edenai/Yi6z66C_sKLEtFzL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Eden AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3d7cc9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/routing-policies/create-or-replace-a-routing-policy.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.edenai.co/#organization\",\"name\":\"Eden AI Documentation\",\"url\":\"https://www.edenai.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/edenai/UmEpehfvjqdFrnPI/logo/dark.svg?fit=max\u0026auto=format\u0026n=UmEpehfvjqdFrnPI\u0026q=85\u0026s=d255714c3107aff5726601b49d305d9d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.edenai.co/docs#website\",\"name\":\"Eden AI Documentation\",\"url\":\"https://www.edenai.co/docs\",\"publisher\":{\"@id\":\"https://www.edenai.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy#webpage\",\"url\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy\",\"name\":\"Create or replace a routing policy\",\"description\":\"Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization's with a management key, your personal one otherwise (a personal policy may share a name with the organization's and then wins on your keys). Send If-Match: \\\"\\\" to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: \\\"0\\\" creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization's policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.\",\"dateModified\":\"2026-11-06T14:49:05.516Z\",\"isPartOf\":{\"@id\":\"https://www.edenai.co/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Organization Management\",\"item\":\"https://www.edenai.co/docs/api-reference/management-keys/list-management-keys\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Routing Policies\",\"item\":\"https://www.edenai.co/docs/api-reference/routing-policies/list-routing-policies\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create or replace a routing policy\",\"item\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy#apireference\",\"headline\":\"Create or replace a routing policy\",\"name\":\"Create or replace a routing policy\",\"description\":\"Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization's with a management key, your personal one otherwise (a personal policy may share a name with the organization's and then wins on your keys). Send If-Match: \\\"\\\" to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: \\\"0\\\" creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization's policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.\",\"url\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy\",\"mainEntityOfPage\":{\"@id\":\"https://www.edenai.co/docs/api-reference/routing-policies/create-or-replace-a-routing-policy#webpage\"},\"dateModified\":\"2026-11-06T14:49:05.516Z\",\"publisher\":{\"@id\":\"https://www.edenai.co/#organization\"},\"isPartOf\":{\"@id\":\"https://www.edenai.co/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Eden AI Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Eden AI Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/routing-policies/create-or-replace-a-routing-policy.md","siteName":"Eden AI Documentation","nav":{"global":null,"versions":[{"version":"V3","tabs":[{"tab":"V3 Documentation","pages":[{"title":"V3 Documentation","href":""}]},{"tab":"V3 API Reference","groups":[{"group":"AI Features","pages":[{"group":"info","pages":[{"title":"List Features","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/info","href":"/api-reference/info/list-features"},{"title":"List Subfeatures","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/info/{feature}","href":"/api-reference/info/list-subfeatures"},{"title":"List Tts Voices","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/info/audio/tts/voices","href":"/api-reference/info/list-tts-voices"},{"title":"Get Feature Info","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/info/{feature}/{subfeature}","href":"/api-reference/info/get-feature-info"}]},{"group":"Chat","pages":[{"title":"Chat Completions","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/chat/completions","href":"/api-reference/chat/chat-completions"}]},{"group":"Responses","pages":[{"title":"Create Response","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/responses","href":"/api-reference/responses/create-response"},{"title":"Retrieve Response","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/responses/{response_id}","href":"/api-reference/responses/retrieve-response"},{"title":"Delete Response","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json delete /v3/responses/{response_id}","href":"/api-reference/responses/delete-response"}]},{"group":"Moderations","pages":[{"title":"Create Moderation","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/moderations","href":"/api-reference/moderations/create-moderation"},{"title":"List Moderation Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/moderations/models","href":"/api-reference/moderations/list-moderation-models"}]},{"group":"Embeddings","pages":[{"title":"Create Embeddings","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/embeddings","href":"/api-reference/embeddings/create-embeddings"},{"title":"List Embeddings Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/embeddings/models","href":"/api-reference/embeddings/list-embeddings-models"}]},{"group":"Anthropic Messages","pages":[{"title":"Create Anthropic Message","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/v1/messages","href":"/api-reference/anthropic-messages/create-anthropic-message"},{"title":"Count Anthropic Tokens","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/v1/messages/count_tokens","href":"/api-reference/anthropic-messages/count-anthropic-tokens"}]},{"group":"Decisions","pages":[{"title":"Create Decisions","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/alpha/decisions","href":"/api-reference/decisions/create-decisions"},{"title":"List Decisions Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/alpha/decisions/models","href":"/api-reference/decisions/list-decisions-models"}]},{"group":"Rerank","pages":[{"title":"Create Rerank","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/rerank","href":"/api-reference/rerank/create-rerank"},{"title":"List Rerank Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/rerank/models","href":"/api-reference/rerank/list-rerank-models"}]},{"group":"Images","pages":[{"title":"Image Generations","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/images/generations","href":"/api-reference/images/image-generations"},{"title":"Image Edits","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/images/edits","href":"/api-reference/images/image-edits"},{"title":"List Image Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/images/models","href":"/api-reference/images/list-image-models"}]},{"group":"Audio","pages":[{"title":"Audio Transcriptions","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/audio/transcriptions","href":"/api-reference/audio/audio-transcriptions"},{"title":"List Transcription Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/audio/transcriptions/models","href":"/api-reference/audio/list-transcription-models"},{"title":"Audio Speech","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/audio/speech","href":"/api-reference/audio/audio-speech"},{"title":"List Speech Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/audio/speech/models","href":"/api-reference/audio/list-speech-models"},{"title":"List Speech Voices","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/audio/voices","href":"/api-reference/audio/list-speech-voices"}]},{"group":"Videos","pages":[{"title":"List Videos","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/videos","href":"/api-reference/videos/list-videos"},{"title":"Create Video","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/videos","href":"/api-reference/videos/create-video"},{"title":"List Video Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/videos/models","href":"/api-reference/videos/list-video-models"},{"title":"Retrieve Video","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/videos/{video_id}","href":"/api-reference/videos/retrieve-video"},{"title":"Delete Video","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json delete /v3/videos/{video_id}","href":"/api-reference/videos/delete-video"},{"title":"Download Video Content","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/videos/{video_id}/content","href":"/api-reference/videos/download-video-content"}]},{"group":"Search","pages":[{"title":"Search","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/search","href":"/api-reference/search/search"},{"title":"List Search Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/search/models","href":"/api-reference/search/list-search-models"},{"title":"Search With Provider","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/search/{provider}","href":"/api-reference/search/search-with-provider"}]},{"group":"Batches","pages":[{"title":"List Batches","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/batches","href":"/api-reference/batches/list-batches"},{"title":"Create Batch","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/batches","href":"/api-reference/batches/create-batch"},{"title":"Retrieve Batch","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/batches/{batch_id}","href":"/api-reference/batches/retrieve-batch"},{"title":"Cancel Batch","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/batches/{batch_id}/cancel","href":"/api-reference/batches/cancel-batch"},{"title":"Batch Results","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/batches/{batch_id}/results","href":"/api-reference/batches/batch-results"}]},{"group":"Models","pages":[{"title":"List Models","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/models","href":"/api-reference/models/list-models"}]},{"group":"universal-ai","pages":[{"title":"Universal Ai","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/universal-ai","href":"/api-reference/universal-ai/universal-ai"},{"title":"List Async Jobs","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/universal-ai/async","href":"/api-reference/universal-ai/list-async-jobs"},{"title":"Create Async Job","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/universal-ai/async","href":"/api-reference/universal-ai/create-async-job"},{"title":"Get Async Job","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/universal-ai/async/{job_id}","href":"/api-reference/universal-ai/get-async-job"},{"title":"Delete Async Job","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json delete /v3/universal-ai/async/{job_id}","href":"/api-reference/universal-ai/delete-async-job"}]},{"group":"collections","pages":[{"title":"List Collections","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/universal-ai/collections","href":"/api-reference/collections/list-collections"},{"title":"Create Collection","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/universal-ai/collections","href":"/api-reference/collections/create-collection"},{"title":"Get Collection","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/universal-ai/collections/{collection_id}","href":"/api-reference/collections/get-collection"},{"title":"Delete Collection","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json delete /v3/universal-ai/collections/{collection_id}","href":"/api-reference/collections/delete-collection"},{"title":"List Items","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/universal-ai/collections/{collection_id}/items","href":"/api-reference/collections/list-items"},{"title":"Add Item","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/universal-ai/collections/{collection_id}/items","href":"/api-reference/collections/add-item"},{"title":"Delete Item","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json delete /v3/universal-ai/collections/{collection_id}/items/{item_id}","href":"/api-reference/collections/delete-item"}]},{"group":"files management","pages":[{"title":"List Files","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json get /v3/upload","href":"/api-reference/files-management/list-files"},{"title":"Upload File","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/upload","href":"/api-reference/files-management/upload-file"},{"title":"Delete All Files","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json delete /v3/upload","href":"/api-reference/files-management/delete-all-files"},{"title":"Delete Files By Ids","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v3/docs/openapi.json post /v3/upload/delete","href":"/api-reference/files-management/delete-files-by-ids"}]}]},{"group":"Organization Management","pages":[{"group":"Management Keys","pages":[{"title":"List management keys","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/auth-keys/","href":"/api-reference/management-keys/list-management-keys"},{"title":"Create a management key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json post /v3/manage/auth-keys/","href":"/api-reference/management-keys/create-a-management-key"},{"title":"Revoke a management key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json delete /v3/manage/auth-keys/{key_id}/","href":"/api-reference/management-keys/revoke-a-management-key"},{"title":"Inspect the calling management key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/whoami/","href":"/api-reference/management-keys/inspect-the-calling-management-key"}]},{"group":"Groups","pages":[{"title":"List groups","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/groups/","href":"/api-reference/groups/list-groups"},{"title":"Retrieve a group","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/groups/{external_group_id}/","href":"/api-reference/groups/retrieve-a-group"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/keys/","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json post /v3/manage/keys/","href":"/api-reference/api-keys/create-an-api-key"},{"title":"Retrieve an API key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/keys/{key_id}/","href":"/api-reference/api-keys/retrieve-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json delete /v3/manage/keys/{key_id}/","href":"/api-reference/api-keys/revoke-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json patch /v3/manage/keys/{key_id}/","href":"/api-reference/api-keys/update-an-api-key"},{"title":"Rotate an API key","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json post /v3/manage/keys/{key_id}/rotate/","href":"/api-reference/api-keys/rotate-an-api-key"}]},{"group":"Usage","pages":[{"title":"Get an API key's usage","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/keys/{key_id}/usage/","href":"/api-reference/usage/get-an-api-keys-usage"},{"title":"Get organization usage","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/usage/","href":"/api-reference/usage/get-organization-usage"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/members/","href":"/api-reference/members/list-members"},{"title":"Set a member's role","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json patch /v3/manage/members/{email}/role/","href":"/api-reference/members/set-a-members-role"}]},{"group":"Routing Policies","pages":[{"title":"List routing policies","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/routing-policies/","href":"/api-reference/routing-policies/list-routing-policies"},{"title":"Get a routing policy","description":"Returns one routing policy: your personal one of that name if you have one, else the organization's (`scope=organization` reads the organization's even when a personal one shadows it). The `ETag` header carries its version, to send back as `If-Match` on a conditional replace. With a management key, the organization's policies are managed (`manage:read` to read, `manage:write` to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/routing-policies/{name}/","href":"/api-reference/routing-policies/get-a-routing-policy"},{"title":"Create or replace a routing policy","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json put /v3/manage/routing-policies/{name}/","href":"/api-reference/routing-policies/create-or-replace-a-routing-policy"},{"title":"Delete a routing policy","description":"Deletes the policy in the scope of your credential (the organization's with a management key, your personal one otherwise). Requests naming it as `policy/{name}` are refused from then on, or fall through to the organization's policy of that name when a personal one shadowed it. With a management key, the organization's policies are managed (`manage:read` to read, `manage:write` to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.","deprecated":null,"version":null,"openapi":"https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json delete /v3/manage/routing-policies/{name}/","href":"/api-reference/routing-policies/delete-a-routing-policy"}]}]}]}]}]},"basePath":"","title":"Create or replace a routing policy - Eden AI Documentation","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CASS2Vpq.js","utils-4k9fyWRu.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-UU-UueZb.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BgJ0LOYq.js","snippetPresets-CMgzlMR-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BzEJegkK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CZuQIZdk.js","shallow-Bw5arfMA.js","getApiPlaygroundDisplay-Ds834aVN.js","CodeSnippet-CKzmjw9L.js","CodeSnippets-BRpgomdp.js","Page-DvEUoD2H.js","getPastedJson-B0N-Tn76.js","icon-DASMs9nC.js","MethodPill-BA6DBLqx.js","DuplicateIcon-BMT5qfbJ.js","createIcon-CNfwVWPx.js","DynamicMarkdown-JYyBNlrJ.js","SectionHeading-BbZnmz8a.js","axios-vUo_bRtp.js","Markdown-LUU0YLpA.js","clsx-Di4ek5Ae.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-VEVWQCR4.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CPszyu99.js"]}