English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/storage/folder/{folderId}Rename a storage folder. The files in the folder stay where they are, with the same URLs.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizstorage:write| Parameter | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | ID of the folder, the _id from Get Folder. |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | New name of the folder, up to 50 characters and unique, case-insensitive. |
curl -X PUT "https://api.repliz.com/public/storage/folder/6a4c3b580afd72bb342c3886" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{
"name": "Brand Alpha"
}'import axios from 'axios';
const response = await axios.put(
'https://api.repliz.com/public/storage/folder/6a4c3b580afd72bb342c3886',
{ name: 'Brand Alpha' },
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch('https://api.repliz.com/public/storage/folder/6a4c3b580afd72bb342c3886', {
method: 'PUT',
headers: {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'Brand Alpha' }),
});
const data = await response.json();
console.log(data);{
"_id": "6a4c3b580afd72bb342c3886",
"name": "Brand Alpha",
"userId": "6879b98097fc8c8a78d1d4c1",
"createdAt": "2026-11-23T03:10:00.000Z",
"updatedAt": "2026-11-23T04:00:00.000Z",
"__v": 0,
"id": "6a4c3b580afd72bb342c3886"
}{
"code": 400,
"message": "folder name already exists"
}{
"code": 404,
"message": "folder not found"
}{
"code": 401,
"message": "unauthorized"
}