Update a folder
Update a folder to change its name.
Sample Request
Here’s a sample request to update a folder:
PUT /v1/folders/{id}
fetch(`https://api.templated.io/v1/folder/${folderId}`, { method: 'PUT', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${API_KEY}` }, body: JSON.stringify({ name: "My Updated Folder" })})
Request Body
name string
REQUIRED
The new name for the folder.
Response
The API returns a JSON object with the updated folder details.
{ "id": "fld_123abc", "name": "My Updated Folder", "createdAt": "2024-03-20T10:30:00Z", "updatedAt": "2024-03-20T10:35:00Z"}