Create
4 min
Link Enterprise provides a web service endpoint that will allow you to create a document or folder.
The following endpoint allows the following capabilities.
- Create a File
- Create a File with metadata
- Create a folder
- Create a folder with metadata
- Create a nested folder structure (with parent obtaining metadata)
- Create a single level tree structure (with parent obtaining metadata)
Create a File
Create a file with no metadata
POST
https://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in Link Enterpri.",
"fileLocation": "C:\\someFolder\\someFile.txt",
"type":null,
"location":"Insert unique box folder id",
"selectedCMS":"box"
}Create a File (metadata)
Create a file with metadata
POST
http://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in Link Enterprise.",
"fileLocation": "C:\\someFolder\\someFile.txt",
"type":"insertMetaDataTemplate",
"location":"Insert unique box folder id",
"selectedCMS":"box",
"mdArray":[
{
"md1":"insertColumnName",
"md2":"insertValue"
},
{
"md1":"someVendor",
"md2":"Gimmal Inc"
}
]
}Create a Folder
Create a folder with no metadata
POST
https://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in Link Enterprise.",
"type":null,
"location":"Insert unique box folder id",
"selectedCMS":"box",
"custom1":"insert Folder Name"
}Create a Folder (metadata)
Create a Folder with metadata
POST
https://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in .",
"fileLocation": "C:\\someFolder\\someFile.txt",
"type":"insertMetaDataTemplate",
"location":"Insert unique box folder id",
"selectedCMS":"box",
"mdArray":[
{
"md1":"insertColumnName",
"md2":"insertValue"
},
{
"md1":"someVendor",
"md2":"Gimmal Inc"
}
],
"custom1":"folderName",
"metaDataFolderFlag":true
}Create a Folder (metadata and nested)
Create a Folder with metadata
POST
https://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in Link Enterprise.",
"fileLocation": "C:\\someFolder\\someFile.txt",
"type":"insertMetaDataTemplate",
"location":"Insert unique box folder id",
"selectedCMS":"box",
"mdArray":[
{
"md1":"insertColumnName",
"md2":"insertValue"
},
{
"md1":"someVendor",
"md2":"Gimmal Inc"
}
],
"custom1":"folderName#DFLOW#folderName2#DFLOW#folderName3",
"metaDataFolderFlag":true,
"enableNested":true
}Create a Folder (metadata and nested false)
Create a Folder with metadata
POST
https://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in Link Enterpris.",
"fileLocation": "C:\\someFolder\\someFile.txt",
"type":"insertMetaDataTemplate",
"location":"Insert unique box folder id",
"selectedCMS":"box",
"mdArray":[
{
"md1":"insertColumnName",
"md2":"insertValue"
},
{
"md1":"someVendor",
"md2":"Gimmal Inc"
}
],
"custom1":"folderName#DFLOW#folderName2#DFLOW#folderName3",
"metaDataFolderFlag":true,
"enableNested":false
}Create a Folder (no metadata and nested false)
Create a Folder with metadata
POST
https://localhost:82/scrud/create
{
"cmsName": "Name of the box system configured in Link Enterprise.",
"fileLocation": "C:\\someFolder\\someFile.txt",
"type":null
"location":"Insert unique box folder id",
"selectedCMS":"box",
"custom1":"folderName#DFLOW#folderName2#DFLOW#folderName3",
"metaDataFolderFlag":false,
"enableNested":false
}