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

# POST /v1/{+name}:export

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

Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one supported export format.

## Path parameters

- `name` string, required

## Request body

- GoogleCloudAiplatformV1ExportModelRequest — Request message for ModelService.ExportModel.
  - `outputConfig` GoogleCloudAiplatformV1ExportModelRequestOutputConfig — Output configuration for the Model export.
    - `imageDestination` GoogleCloudAiplatformV1ContainerRegistryDestination — The Container Registry location for the container image.
      - `outputUri` string — Required. Container Registry URI of a container image. Only Google Container Registry and Artifact Registry are supported now. Accepted forms: * Google Container Registry path. For example: `gcr.io/projectId/imageName:tag`. * Artifact Registry path. For example: `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`. If a tag is not specified, "latest" will be used as the default tag.
    - `exportFormatId` string — The ID of the format in which the Model must be exported. Each Model lists the export formats it supports. If no value is provided here, then the first from the list of the Model's supported formats is used by default.
    - `artifactDestination` GoogleCloudAiplatformV1GcsDestination — The Google Cloud Storage location where the output is to be written to.
      - `outputUriPrefix` string — Required. Google Cloud Storage URI to output directory. If the uri doesn't end with '/', a '/' will be automatically appended. The directory is created if it doesn't exist.

## Response `200`

Successful response

---

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