Skip to main content
PATCH
Update a model

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Project identifier.

id
string
required

Model identifier.

Query Parameters

updateMask
string<field-mask>

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

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
enum<string>
default:VISIBILITY_PRIVATE

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

Available options:
VISIBILITY_PRIVATE,
VISIBILITY_INTERNAL

Response

OK

Custom or derived model registered in a project and backed by versioned weight files.

id
string
required

Unique model identifier.

projectId
string
required

ID of the project that owns the model.

organizationId
string
required

ID of the organization that owns the model's project.

name
string
required

Project-qualified model name in the form <project_slug>/<model_name>. Create and update requests may use the bare or qualified form.

weights
object
required

Architecture, size, precision, and speculative-decoding metadata derived from the model files.

visibility
enum<string>
default:VISIBILITY_PRIVATE
required

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

Available options:
VISIBILITY_PRIVATE,
VISIBILITY_INTERNAL
description
string

Human-readable description of the model and its intended use.

baseModelId
string

ID of the supported or custom base model from which this model was derived.

baseModel
string
read-only

Resource name of the base model, using projects/{baseProject}/models/{baseModelId}; empty when the model has no base.