Add a tag to a file
Create folders found in local directory if not already created
Create folder
Create a tag
Delete child folders of a given folder
Delete files
An array of file IDs to delete.
Optional
options: DeleteFilesOptionsOptions for the delete operation.
Delete a tag from a file
Delete folder
Delete a tag
Get all folders in Studio
Get all conversions defined in Studio
Get file headers
Get files of a folder
Studio folder id
Get file tags for a file
Get folders
Optional
parentId: stringGet folder settings
Get all metadata fields defined in Stage for this Studio
Get all tags
Get required information about files for upload
Login
Optional
longSession: numberPush changes to Studio
studio.push({
folders: [{
folderId: '568a7a2aadd4532b0f4f4f5b',
localFolder: 'dist/js'
}, {
folderId: '568a7a27add453aa1a4f4f58',
localFolder: 'dist/css'
}, {
folderId: '568a7a27add453aa1a4f4f58',
localFolder: 'dist/',
includeSubFolders: true,
createNewFileVersions: false,
createdFolderSettings: {
'dist/master': { // Regex match
cacheMaxAge: 64800
},
'dist/dev': { // Regex match
cacheMaxAge: 2
}
},
createdFileHeaders: {
'dist/master/service-worker.js': { // Regex match
'Service-Worker-Allowed': '/'
}
}
}]
}).then(function (res) {
console.log(res.length + 'files uploaded');
})
Replace files
Optional
options: ReplaceFileOptionsReset all API settings to default values
Search for files in Studio
Update file headers
Optional
options: { Optional
fileOptional
fileOptional
log?: booleanUpdate folder settings
Optional
options: { Update a single setting for this session
See documentation for available settings.
Upload files to a specified folder
Example