update_asset_folder
Modify the name or parent folder of an existing asset folder in Storyblok by specifying a folder ID and optional new name or parent ID.
Instructions
Update an existing asset folder's name or parent in the current Storyblok space.
Parameters:
folder_id (str): ID of the folder to update.
name (Optional[str]): New name for the folder.
parent_id (Optional[int]): New parent folder ID.
Request Body Example:
{
"asset_folder": {
"name": "Updated Folder",
"parent_id": 456
}
}
Returns:
Dict[str, Any]: A success message or error content depending on response.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
folder_id | Yes | ||
name | No | ||
parent_id | No |
Input Schema (JSON Schema)
{
"properties": {
"folder_id": {
"title": "Folder Id",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"parent_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Parent Id"
}
},
"required": [
"folder_id"
],
"title": "update_asset_folderArguments",
"type": "object"
}