Skip to main content
POST
Import into a mock API

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

A JSON file containing WireMock stub mappings.

mappings
object[]
required

Response

Successfully imported. The import finished within the sync timeout, so the import result is returned directly

The result of a completed import

mappings
object[]
required

The IDs of the stub mappings created by the import

errors
object[]

Any non-fatal errors encountered during the import