Delete project credential
DELETE
/api/v1/projects/{projectId}/credentials/{credentialId}
const url = 'https://localhost:10001/api/v1/projects/1/credentials/1';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://localhost:10001/api/v1/projects/1/credentials/1 \ --header 'Authorization: <Authorization>'Delete a specific credential under the given project
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
integer
Project ID
credentialId
required
integer
Credential ID
Responses
Section titled “ Responses ”Credential deleted
Media type application/json
Bad request - Invalid project or credential ID
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Forbidden - Credential does not belong to project
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Credential not found
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Internal server error
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}