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

# POST /v1/{+repository}:exportArtifact

`POST /v1/{+repository}:exportArtifact`

Exports an artifact to a Cloud Storage bucket.

## Path parameters

- `repository` string, required

## Request body

- ExportArtifactRequest — The request for exporting an artifact to a destination.
  - `sourceTag` string — The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
  - `sourceVersion` string — The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
  - `gcsPath` string — The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing objects with the same path will be overwritten.

## Response `200`

Successful response

---

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