put__repo_{repoId}
TypeScript Client Library
// Function overloads for updateStorageRepo
public updateStorageRepo(repoId: string, data: UpdateRepoRequest): Promise<UpdateRepoResponse>;
public updateStorageRepo(repoId: string, data: UpdateRepoWithBucketsRequest): Promise<UpdateRepoResponse>;
public async updateStorageRepo(
repoId: string,
data: UpdateRepoRequest | UpdateRepoWithBucketsRequest
): Promise<UpdateRepoResponse> {
return this.makeRequest<UpdateRepoResponse>(`repo/${repoId}`, 'PUT', data);
}Code Samples
# You can also use wget
curl -X PUT https://backend.flashback.tech/repo/{repoId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'PUT https://backend.flashback.tech/repo/{repoId} HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"name": "My Updated Repository",
"storageType": "S3",
"mode": "MIRROR",
"repoBuckets": [
{
"folder": "backups",
"master": true,
"bucketId": "123e4567-e89b-12d3-a456-426614174000",
}
],
"repoAiLlms": [
{
"aiLlmId": "ai-llm-123"
}
]
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/repo/{repoId}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Parameters
Name
In
Type
Required
Description
Parameter
Value
Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?