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

# POST /v1/{+parent}/versions

`POST /v1/{+parent}/versions`

Creates a specified version.

## Path parameters

- `parent` string, required

## Query parameters

- `apiVersionId` string

## Request body

- ApiVersion — Describes a particular version of an API. ApiVersions are what consumers actually use.
  - `primarySpec` string — The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
  - `state` string — A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
  - `updateTime` string, google-datetime — Output only. Last update timestamp.
  - `name` string — Resource name.
  - `displayName` string — Human-meaningful name.
  - `annotations` object — Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
  - `labels` object — Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
  - `description` string — A detailed description.
  - `createTime` string, google-datetime — Output only. Creation timestamp.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/apigeeregistry.md) · [All operations](https://skmtc.dev/google/apis/apigeeregistry/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/apigeeregistry/revisions/77286e0fad42/schema)
