Skip to content
Subako Docs
Esc
navigateopen⌘Jpreview

PATCH /v1/model-providers/{model_provider_id}

PATCH/v1/model-providers/{model_provider_id}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
model_provider_idstring<uuid>required
Model provider id
Request body
requiredapplication/json
base_urlstring | null
max length 2048
descriptionstring | null
max length 1024
display_namestring | null
max length 200
Responses
200The updated provider.
One of:
object
created_atstring<date-time>required
descriptionstringrequired
display_namestringrequired
formatModelProviderFormatBodyrequired
Mirrors `ModelProviderFormat`'s spellings rather than deriving serde on the domain type: renaming a domain variant must not silently change the wire.
Allowed:anthropicopenai_responses
idstring<uuid>required
modelsPlatformModelBody[]required
Models available through this platform provider.
Show properties
Array of PlatformModelBody
descriptionstringrequired
display_namestringrequired
modelstringrequired
typestringrequired
Allowed:platform
object
created_atstring<date-time>required
descriptionstringrequired
display_namestringrequired
formatModelProviderFormatBodyrequired
Mirrors `ModelProviderFormat`'s spellings rather than deriving serde on the domain type: renaming a domain variant must not silently change the wire.
Allowed:anthropicopenai_responses
idstring<uuid>required
workspace_idstring<uuid>required
typestringrequired
Allowed:byok
400Malformed body, path parameter, a field outside its bound, or a base URL the network policy refuses.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
403Caller lacks model_provider.manage, or the provider is a platform row, which only the operator changes.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
404No such provider, or the caller cannot see it.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH "https://api.us.cloud.subako.ai/v1/model-providers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "base_url": "string",
  "description": "string",
  "display_name": "string"
}'
Response
{
  "created_at": "2019-08-24T14:15:22Z",
  "description": "string",
  "display_name": "string",
  "format": "anthropic",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "models": [
    {
      "description": "string",
      "display_name": "string",
      "model": "string"
    }
  ],
  "type": "platform"
}