Pacts
Delete a draft
Delete a pact that was never sent. A sent pact is voided instead, so its record stays.
Authorization
AuthorizationstringheaderrequiredBearer followed by your API key: Bearer sgk_…. The key also works in an X-Api-Key header. See Authentication.Path parameters
uidstringpathrequiredThe pact's 8-character id. Not case-sensitive.
Response
204 No ContentDeleted. There is no body.
Errors
| Status | When |
|---|---|
| 401 Unauthorized | The API key is missing, wrong or revoked. |
| 403 Forbidden | The account's plan does not include API access (Pro and Business do). |
| 404 Not Found | No pact with that id belongs to your account. |
| 409 Conflict | The pact is not a draft. |
Every error body is { "error": "message" }. See Errors.