Javascript
const url = 'https://studyfetchapi.com/api/v1/folders/{id}'; const options = { method: 'PATCH', headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'}, body: '{"name":"<string>","parentId":"<string>"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
API Key for authentication
Folder ID
Folder updated successfully
Was this page helpful?