{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To update a model router, send a PUT request to `/v2/gen-ai/models/routers/{uuid}`.","properties":{"path":{"type":"object","properties":{"uuid":{"type":"string","examples":["\"123e4567-e89b-12d3-a456-426614174000\""],"description":"Model router id"}},"required":["uuid"],"additionalProperties":false},"body":{"$ref":"#/definitions/apiUpdateModelRouterInputPublic"}},"required":["path"],"additionalProperties":false,"definitions":{"apiUpdateModelRouterInputPublic":{"description":"Information about updating a model router","properties":{"description":{"description":"Model router description","type":"string","examples":["\"My Model Router Description\""]},"fallback_models":{"items":{"type":"object"},"type":"array"},"name":{"description":"Model router name: lowercase, at most 255 characters, only a-z, 0-9, and hyphens","type":"string","examples":["\"my-model-router\""]},"policies":{"description":"Router policies","items":{"$ref":"#/definitions/apiModelRouterTaskPolicy"},"type":"array"},"regions":{"description":"DEPRECATED: this field does not affect deployment and model routers are always\ndeployed to all regions. Must be omitted or set to [\"all\"].","items":{"type":"string","examples":["example string"]},"type":"array","examples":[["example string"]]},"uuid":{"description":"Model router id","type":"string","examples":["\"12345678-1234-1234-1234-123456789012\""]}},"type":"object"},"apiModelRouterTaskPolicy":{"description":"Model router policy","properties":{"custom_task":{"$ref":"#/definitions/apiModelRouterTaskDetails"},"models":{"description":"Models assigned to the task","items":{"type":"string","examples":["example string"]},"type":"array","examples":[["example string"]]},"selection_policy":{"$ref":"#/definitions/apiModelRouterSelectionPolicy"},"task_slug":{"description":"Task slug","type":"string","examples":["\"summarization\""]}},"type":"object"},"apiModelRouterTaskDetails":{"description":"Task definition embedded in a model router config.","properties":{"description":{"description":"Short task description","type":"string","examples":["\"Summarize long-form text\""]},"name":{"description":"Task name","type":"string","examples":["\"Custom Summarization\""]}},"type":"object"},"apiModelRouterSelectionPolicy":{"description":"Selection policy preference for choosing among assigned models.","properties":{"prefer":{"description":"One of: none, cheapest, fastest","type":"string","examples":["\"cheapest\""]}},"type":"object"}}},"name":"Update a Model Router","id":"digitalocean.genai_update_model_router","example":{"path":{"uuid":"\"123e4567-e89b-12d3-a456-426614174000\""}},"maxRequests":1,"summary":false}}