---
title: "Export as ODCS"
method: GET
path: "/groups/{groupId}/artifacts/{artifactId}/contract/export"
tags: ["Contracts"]
---

# Export as ODCS

`GET /groups/{groupId}/artifacts/{artifactId}/contract/export`

Reconstructs an ODCS v3.1 YAML contract from the artifact's current contract.* labels, contract rules, and field-tag.* version labels.

## Response `200`

The reconstructed ODCS contract YAML.

## Other responses

- `404` — Common response for all operations that can return a `404` error.
- `500` — Common response for all operations that can fail with an unexpected server error.

---

[API](https://skmtc.net/apicurio/apis/apicurio-registry-api-v3.md) · [All operations](https://skmtc.net/apicurio/apis/apicurio-registry-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apicurio/apicurio-registry-api-v3/revisions/c39cb56d7dbc/schema)
