createMock
Creates a mock server for API testing and development by simulating endpoints from a Postman collection, enabling validation without live backend dependencies.
Instructions
Creates a mock server in a collection.
Pass the collection UID (ownerId-collectionId), not the bare collection ID.
If you only have a `collectionId`, resolve the UID first:
Prefer GET `/collections/{collectionId}` and read `uid`, or
Construct `{ownerId}-{collectionId}` using ownerId from GET `/me`:
For team-owned collections: `ownerId = me.teamId`
For personal collections: `ownerId = me.user.id`
Use the `workspace` query to place the mock in a specific workspace. Prefer explicit workspace scoping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace's ID. | |
| mock | No |