Docs

Templates

Delete a template

Delete a template. Pacts already made from it keep their own copy of the document.

DELETE/v1/templates/{uid}

Authorization

Authorizationstringheaderrequired
Bearer followed by your API key: Bearer sgk_…. The key also works in an X-Api-Key header. See Authentication.

Path parameters

uidstringpathrequired
The template's 8-character id. Not case-sensitive.

Response

204 No ContentDeleted. There is no body.

Errors

StatusWhen
401 UnauthorizedThe API key is missing, wrong or revoked.
403 ForbiddenThe account's plan does not include API access (Pro and Business do).
404 Not FoundNo template with that id belongs to your account.

Every error body is { "error": "message" }. See Errors.