put__bucket_{bucketId}
TypeScript Client Library
public updateStorageBucket = async (bucketId: string, data: UpdateBucketRequest): Promise<UpdateBucketResponse> => {
return this.makeRequest<UpdateBucketResponse>(`bucket/${bucketId}`, 'PUT', data);
};Code Samples
# You can also use wget
curl -X PUT https://backend.flashback.tech/bucket/{bucketId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'PUT https://backend.flashback.tech/bucket/{bucketId} HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"name": "Updated Backup Bucket",
"region": "us-west-2",
"endpoint": "https://s3.us-west-2.amazonaws.com"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/bucket/{bucketId}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Parameters
Name
In
Type
Required
Description
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
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?