---
title: "Update API Version"
method: PATCH
path: "/v3/apis/{apiId}/versions/{versionId}"
tags: ["API Version"]
---

# Update API Version

`PATCH /v3/apis/{apiId}/versions/{versionId}`

Updates the version (OpenAPI or AsyncAPI) of an API.

## Query parameters

- `force` 'true' | 'false'

## Request body

- ApiVersion
  - `id` string, uuid — The API version identifier.
  - `version` string, nullable — The version of the api.
  - `spec` object, nullable
    - `content` string, nullable — The raw content of your API spec, in json or yaml format (OpenAPI or AsyncAPI).
    - `type` 'oas2' | 'oas3' | 'asyncapi' — The type of specification being stored. This allows us to render the specification correctly.
    - `validation_messages` object[] — The errors that occurred while parsing the API version spec.
      - `message` string, required
  - `created_at` string, date-time — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time — An ISO-8601 timestamp representation of entity update date.

## Response `200`

API version (OpenAPI or AsyncAPI)

- object
  - `id` string, uuid, required — The API version identifier.
  - `version` string, required — The version of the api.
  - `spec` object, nullable
    - `content` string, nullable — The raw content of your API spec, in json or yaml format (OpenAPI or AsyncAPI).
    - `type` 'oas2' | 'oas3' | 'asyncapi' — The type of specification being stored. This allows us to render the specification correctly.
    - `validation_messages` object[] — The errors that occurred while parsing the API version spec.
      - `message` string, required
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400` — Bad Request
- `401` — ApiUnauthorized
- `403` — ApiForbidden
- `404` — Not Found
- `409` — Conflict - May occur when constraints are violated
- `415` — Unsupported Media Type

## Changes

- **2026-01-30** `4b75c54c0f2b` — 1 info
  - added the new optional `query` request parameter `force`
- **2025-10-29** `19e869275e28` — 1 warning
  - added the new `type` enum value to the `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2025-08-22** `96118a9cd7f4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/konnect-api/changes/v3/apis/:apiId/versions/:versionId/patch.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) · [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/konnect-api/revisions/c7956e473770/schema)
