POST
/
api
/
v1
/
folders
Create a new folder
const url = 'https://studyfetchapi.com/api/v1/folders';
const options = {
  method: 'POST',
  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);
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json

Response

201

Folder created successfully