put__repo_{repoId}_apikey_{apikeyId}
TypeScript Client Library
public updateRepoKey = async (repoId: string, keyId: string, data: UpdateRepoKeyRequest): Promise<UpdateRepoKeyResponse> => {
return this.makeRequest<UpdateRepoKeyResponse>(`repo/${repoId}/apikey/${keyId}`, 'PUT', data);
};Code Samples
# You can also use wget
curl -X PUT https://backend.flashback.tech/repo/{repoId}/apikey/{apikeyId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'PUT https://backend.flashback.tech/repo/{repoId}/apikey/{apikeyId} HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"name": "string",
"accessType": "READ"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/repo/{repoId}/apikey/{apikeyId}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});{
"name": "string",
"accessType": "READ"
}Parameters
Name
In
Type
Required
Description
Parameter
Value
Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?