Spec0docsCLI 0.7.0
API Explorer

Delete a mock server owned by the calling org

Hard-deletes the mock server and removes its association with the parent API. Cross-org deletes return 404 (not 403) so the existence of the mock is not leaked. This is what the spec0 mock delete lifecycle command targets.

DELETE
/api/v1/public/mocks/{mockServerId}

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token. Either a Personal Access Token (pat_...) or a Service Account Token (sat_...). Issued via the Spec0 dashboard or /me/personal-access-tokens.

In: header

Path Parameters

mockServerId*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X DELETE "https://app.spec0.io/api/v1/public/mocks/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "error": "string",
  "message": "string"
}
{
  "status": 0,
  "title": "string",
  "detail": "string",
  "type": "string",
  "instance": "string"
}
{
  "status": 0,
  "title": "string",
  "detail": "string",
  "type": "string",
  "instance": "string"
}
Was this helpful?