---
title: "Restore the contents of all mock API entities to a given version"
method: POST
path: "/v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}/restore"
tags: ["Mock API versioning"]
---

# Restore the contents of all mock API entities to a given version

`POST /v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}/restore`

## Request

- Base URL: `https://wmc.wiremockapi.cloud`
- URL: `https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}/restore`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/wiremock/apis/wiremock-cloud/docs/v1/mock-apis/:mockApiId/version-history/commits/:versionCommitId/restore/post.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

200 response

## Other responses

- `403`: 403 Unauthorized response

---

[API](https://skmtc.dev/wiremock/apis/wiremock-cloud.md) - [All operations](https://skmtc.dev/wiremock/apis/wiremock-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/wiremock/apis/wiremock-cloud/revisions/93bebefc672f?raw)
