Bulk move materials to a different folder
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({materialIds: ['<string>'], folderId: '<string>'})
};
fetch('https://studyfetchapi.com/api/v1/materials/bulk/move', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://studyfetchapi.com/api/v1/materials/bulk/move \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"materialIds": [
"<string>"
],
"folderId": "<string>"
}
'import requests
url = "https://studyfetchapi.com/api/v1/materials/bulk/move"
payload = {
"materialIds": ["<string>"],
"folderId": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"movedCount": 123
}Materials
Bulk move materials to a different folder
POST
/
api
/
v1
/
materials
/
bulk
/
move
Bulk move materials to a different folder
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({materialIds: ['<string>'], folderId: '<string>'})
};
fetch('https://studyfetchapi.com/api/v1/materials/bulk/move', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://studyfetchapi.com/api/v1/materials/bulk/move \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"materialIds": [
"<string>"
],
"folderId": "<string>"
}
'import requests
url = "https://studyfetchapi.com/api/v1/materials/bulk/move"
payload = {
"materialIds": ["<string>"],
"folderId": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"movedCount": 123
}Authorizations
API Key for server-to-server authentication. Resolves to the owning organization.
Body
application/json
Was this page helpful?