---
title: "POST /v1/{+name}:setDefault"
method: POST
path: "/v1/{+name}:setDefault"
tags: ["projects"]
---

# POST /v1/{+name}:setDefault

`POST /v1/{+name}:setDefault`

Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.

## Path parameters

- `name` string, required

## Request body

- GoogleCloudMlV1SetDefaultVersionRequest — Request message for the SetDefaultVersion request.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/ml.md) · [All operations](https://skmtc.net/google/apis/ml/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/ml/versions/2135f4d5ddf1/schema)
