Delete Credential
Updated at:
Permanently deletes a specified Credential. This operation cannot be undone.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
DELETE
/vaults/{vault_id}/credentials/{credential_id}Path parameters
vault_idstringRequiredVault ID, format vlt_xxx
credential_idstringRequiredCredential ID, format cred_xxx
Request example
curl -X DELETE "$AGENTSTUDIO_URL/vaults/vlt_xxx/credentials/cred_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response fields
idstringID of the deleted Credential
typestringAlways credential_deleted
request_idstringUnique request identifier
Response example
{
"id": "cred_xxx",
"type": "credential_deleted",
"request_id": "req_xxx"
}
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |
Is this page helpful?