Ana içeriğe geç

Delete JWK

Endpoint

DELETE /apiops/projects/{projectName}/jwks/{jwkName}/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
jwkNamestringYesName of the JWK to delete

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": "JWK (name: my-jwk) is not found!"
}

cURL Example

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

Notes and Warnings

  • Undeployment:

    • JWK is automatically undeployed from all environments before deletion
    • Undeployment results are returned in the response
  • Dependencies:

    • Ensure no policies or configurations reference this JWK before deletion
    • Deleting a JWK may break policies that depend on it
  • Permanent Action:

    • Deletion is permanent and cannot be undone
    • Make sure to backup important JWKs before deletion

Permissions

User must have SECRETS + MANAGE permission in the project. For undeployment operations (when undeploying JWKs from environments), user must also have SECRETS + DEPLOY_UNDEPLOY permission.