delete__repo_{repoId}_apikey_{apikeyId}
DELETE /repo/{repoId}/apikey/{apikeyId}
Delete Repository API Key
Delete an API key
TypeScript Client Library
public deleteRepoKey = async (repoId: string, keyId: string): Promise<ActionResponse> => {
return this.makeRequest<ActionResponse>(`repo/${repoId}/apikey/${keyId}`, 'DELETE', null);
};Code Samples
# You can also use wget
curl -X DELETE https://backend.flashback.tech/repo/{repoId}/apikey/{apikeyId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'DELETE https://backend.flashback.tech/repo/{repoId}/apikey/{apikeyId} HTTP/1.1
Host: localhost:3000
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/repo/{repoId}/apikey/{apikeyId}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Parameters
Name
In
Type
Required
Description
repoId
path
string
true
none
apikeyId
path
string
true
none
Example responses
200 Response
{
"success": true,
"message": "string"
}Responses
Status
Meaning
Description
Schema
Response Schema
Status Code 200
Name
Type
Required
Restrictions
Description
» success
boolean
false
none
none
» message
string
false
none
none
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?