Skip to main content
PUT
/
v1
/
mock-apis
/
{mockApiId}
/
open-api
Update OpenAPI document for mock API
curl --request PUT \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/open-api \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "openApi": {
    "doc": "openapi: 3.1.0\ninfo:\n  title: Customer Contacts Management API\n  description: API for managing customer contacts including personal and professional details\n  version: 1.0.0\nservers:\n- url: https://dev-openapi-testing.wiremockapi.cloud"
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.wiremock.io/llms.txt

Use this file to discover all available pages before exploring further.

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"

Body

application/json
openApi
object
required

Response

204

Successfully updated