Delete Certificate

Overview

Deletes a certificate specified by name. The certificate is automatically undeployed from all environments after deletion.

Endpoint

DELETE /apiops/projects/{projectName}/certificates/{certificateName}/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

Header Value Required
Authorization Bearer {token} Yes

Path Parameters

Parameter Type Required Description
projectName string Yes Project name
certificateName string Yes Certificate name

Request Body

None.

Response

Success Response (200 OK)

{
  "success": true,
  "deploymentResult": {
    "success": true,
    "message": "Undeployment completed successfully",
    "environmentResults": [
      {
        "environmentName": "production",
        "success": true,
        "message": "Undeployed successfully"
      }
    ]
  }
}

Error Response (400 Bad Request)

{
  "error": "bad_request",
  "error_description": "Certificate (name: my-certificate) is not found!"
}

cURL Example

curl -X DELETE \
  "https://demo.apinizer.com/apiops/projects/MyProject/certificates/my-certificate/" \
  -H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Permanent Deletion:
    • Certificate is permanently deleted
    • This action cannot be undone
  • Automatic Undeployment:
    • Certificate is automatically undeployed from all environments
    • Undeployment results are returned in the response