Volume Service

Update a model

PATCH
/projects/{projectId}/models/{id}

Updates mutable model metadata such as its inference name, description, base model, or visibility.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project identifier.

id*string

Model identifier.

Query Parameters

updateMask?string

Fields to update. If omitted, all mutable fields are overwritten.

Formatfield-mask

Request Body

application/json

Mutable metadata for a custom model resource.

name?string

Updated inference-addressable model name.

description?string

Updated user-facing model description.

visibility?string

Who can discover the model. VISIBILITY_PRIVATE restricts it to the project; VISIBILITY_INTERNAL shares it with the organization.

Default"VISIBILITY_PRIVATE"

Value in

  • "VISIBILITY_PRIVATE"
  • "VISIBILITY_INTERNAL"

Response Body

application/json

application/json

curl -X PATCH "https://example.com/projects/string/models/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "projectId": "string",  "organizationId": "string",  "name": "string",  "description": "string",  "weights": {    "type": "WEIGHTS_TYPE_DEFAULT",    "speculatorMechanism": "SPECULATOR_MECHANISM_DRAFT",    "draftSpeculatorType": "DRAFT_SPECULATOR_TYPE_EAGLE",    "architecture": "string",    "contextLength": "string",    "parameters": {      "total": "string",      "byDtype": [        {          "dtype": "string",          "count": "string"        }      ]    }  },  "baseModelId": "string",  "baseModel": "string",  "visibility": "VISIBILITY_PRIVATE"}