POST
/
v1
/
mock-apis
/
{mockApiId}
/
version-history
/
commits
/
{versionCommitId}
/
restore
/
{entityType}
/
{entityId}
Restore the contents of an entity to a given version
curl --request POST \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}/restore/{entityType}/{entityId} \
  --header 'Authorization: <api-key>'
This response does not have an example.

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

mockApiId
string
required

The ID of the Mock API

Required string length: 5 - 10
Example:

"jjl8y"

versionCommitId
string
required

The ID of the version

Required string length: 5 - 10
Example:

"jjl8y"

entityType
enum<string>
required

The type of the entity.

Available options:
mappings,
settings,
grpc-dsc,
graphql-schema,
openapi-doc
entityId
string
required

The ID of the entity. This path segment should be provided if and only if the entityType path segment is mappings.

Response

200

200 response