Import conflict
A refusal to apply a mock import, because the project is no longer in the state its preview was made against.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/import-conflict |
| Status | 409 |
What it means
Section titled “What it means”An import is applied only as its preview showed it. The apply plans the same source again, and refuses when the plan differs: a mock it would reuse changed, a name it would give was taken, the project’s redaction settings changed, or the same import was already applied, so its mocks now show as reused. Nothing of this import was created. The source itself may be fine.
Status
Section titled “Status”Always 409.
Where it comes from
Section titled “Where it comes from”From applying an import, with the detail This import would no longer do what its preview showed. Preview the import again.
The app then reads the plan again and says Nothing was imported. The plan below is read again; review it before applying.
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/import-conflict", "title": "Project changed since the preview", "status": 409, "detail": "This import would no longer do what its preview showed. Preview the import again."}What to do
Section titled “What to do”Read the new preview before applying it: the change that caused the conflict is in the project, not in your source, and the new plan may reuse mocks or name them differently. Do not send the same apply again; it is refused the same way.
Related
Section titled “Related”- OpenAPI conflict, the same refusal for an OpenAPI import
- Import mocks from a HAR, Postman or curl
- Error types