POST Credentials/Delete
Deletes an existing credential.
Requirements
- Permissions: The caller must have View permission, Read permission, and Delete permission to the credential object.
- Token scope: Security:Delete
Headers
-
Content type: Content-Type:application/json.
- Token: The bearer access token that you received. For example, Authorization:Bearer 4MyGeneratedBearerTknz==. For more information, see Passing a bearer token in your API calls.
Parameters
Name |
Description |
---|---|
CredentialPath |
The path of the credential object to be deleted. |
Returns
Name |
Description |
---|---|
HTTP 200 |
For valid requests, this call returns a HTTP 200 message and the following data in the message body:
|
HTTP 500 |
For invalid requests, this call returns a HTTP 500 and the following data in the message body:
|
Example: Delete password credentials
Request
POST https://tpp.venafi.example/vedsdk/Credentials/Delete Authorization:Bearer 4MyGeneratedBearerTknz== { "CredentialPath":"\\VED\\Policy\\RenamedPasswordCred" }
Response
HTTP/1.1 200 OK { "Result":1 }