JavaScript
const options = { method: 'PATCH', headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'}, body: JSON.stringify({ name: '<string>', parentFolderId: '<string>', description: '<string>', metadata: {} }) }; fetch('https://studyfetchapi.com/api/v1/folders/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "_id": "<string>", "name": "<string>", "organizationId": "<string>", "status": "active", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "parentFolderId": "<string>", "description": "<string>", "metadata": { "color": "<string>", "icon": "<string>", "materialCount": 123, "totalSize": 123, "lastActivity": "2023-11-07T05:31:56Z" } }
API Key for authentication
Folder ID
New folder name
New parent folder ID
New folder description
Updated metadata
Folder updated successfully
Folder name
Organization ID
Folder status
active
deleted
Creation date
Last update date
Parent folder ID
Folder description
Folder metadata
Show child attributes
Folder color
Folder icon
Number of materials in folder
Total size of materials in folder
Last activity date
Was this page helpful?