Renames a folder.
Operation description
Method
PUT
URI
/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}/name
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:RenameFolder |
update |
*Folder
|
None | None |
Request syntax
PUT /openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}/name HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
| database |
string |
Yes |
The database name. |
general |
| folderId |
integer |
Yes |
The folder ID. |
-1 |
| body |
object |
No |
The request body. |
|
| name |
string |
Yes |
The folder name. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
10D5E615-69F7-5F49-B850-00169ADE513C |
| result |
object |
The returned data. |
|
| id |
integer |
The primary key ID. |
1 |
| gmtCreate |
string |
The time when the folder was created. |
1719221186114 |
| gmtModified |
string |
The time when the folder was last modified. |
1719221186114 |
| name |
string |
The name of the folder. |
test |
| parent |
integer |
The ID of the parent folder. |
-1 |
| isDir |
integer |
Indicates whether the item is a folder. Valid values: `true` and `false`. |
True |
| type |
string |
The type of the item. Valid values: `table`, `instance`, `template`, and `function`. |
template |
| instanceId |
integer |
The instance ID. |
1 |
| templateId |
integer |
The template ID. |
1 |
Examples
Success response
JSON format
{
"requestId": "10D5E615-69F7-5F49-B850-00169ADE513C",
"result": {
"id": 1,
"gmtCreate": "1719221186114",
"gmtModified": "1719221186114",
"name": "test",
"parent": -1,
"isDir": 0,
"type": "template",
"instanceId": 1,
"templateId": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.