Rename Template Folder
Rename a template folder in your workspace
Published ·Updated
PATCH
/v1/studio/folders/{folderId}curl -X PATCH "https://api.orshot.com/v1/studio/folders/<FOLDER_ID>" \
-H "Authorization: Bearer <ORSHOT_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "<NAME>"
}'const res = await fetch("https://api.orshot.com/v1/studio/folders/<FOLDER_ID>", {
method: "PATCH",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
body: JSON.stringify({
"name": "<NAME>"
}),
});
const data = await res.json();import requests
response = requests.patch(
"https://api.orshot.com/v1/studio/folders/<FOLDER_ID>",
headers={"Authorization": "Bearer <ORSHOT_API_KEY>"},
json={
"name": "<NAME>"
},
)
data = response.json()$ch = curl_init("https://api.orshot.com/v1/studio/folders/<FOLDER_ID>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <ORSHOT_API_KEY>",
"Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"name" => "<NAME>"
]));
$data = json_decode(curl_exec($ch), true);
curl_close($ch);require "net/http"
require "json"
uri = URI("https://api.orshot.com/v1/studio/folders/<FOLDER_ID>")
req = Net::HTTP::Patch.new(uri)
req["Authorization"] = "Bearer <ORSHOT_API_KEY>"
req["Content-Type"] = "application/json"
req.body = {
"name": "<NAME>"
}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Overview#
Rename an existing template folder.
https://api.orshot.com/v1/studio/folders/:folderIdPath Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
folderId | Integer | Yes | The unique ID of the folder |
Request Body#
| Parameter | Type | Required | Description |
|---|---|---|---|
name | String | Yes | New folder name, up to 50 characters, unique per workspace |
Request#
await fetch("https://api.orshot.com/v1/studio/folders/11", {
method: "PATCH",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
body: JSON.stringify({
name: "Instagram Posts",
}),
});{
"folder": {
"id": 11,
"name": "Instagram Posts"
}
}Error Responses#
Folder Not Found (404)#
{
"error": "Folder not found"
}Duplicate Name (409)#
{
"error": "A folder with this name already exists"
}Invalid Folder ID (400)#
{
"error": "folderId must be a number"
}Invalid Name (400)#
{
"error": "Folder name cannot be empty"
}Rate Limits#
- 30 requests per minute per API key, shared with the other studio template, folder and sharing endpoints
Was this page helpful?
Ready to automate?
Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.
Get your API key- Image, PDF and video generation via API
- Visual editor with AI and smart layouts
- Zapier, Make, MCP and 40+ integrations
- White-label embed for your own app
- 100 free credits a month, no credit card required