Create
2 min
Link Enterprise provides a web service endpoint that will allow you to create a document.
The following endpoint allows the following capabilities.
- Create a File
- Create a File with metadata
Create a File
Create a file with no metadata
POST
https://localhost:82/scrud/create
{
"cmsName":"Name of the filenet system configured in Link Enterpri.",
"repository":"Filenet_Repository",
"selectedCMS":"filenet",
"domain":"Domain_Name",
"checkout":false,
"dateTimeFormat":"MM/dd/yyyy hh:mm:ss a z",
"fileLocation":"C:\\someFolder\\someFile.txt",
"selectedCMS":"filenet",
"checkinAsMinor":false,
"findCurrent":false,
"location":"/folderName"
}Create a File (metadata)
Create a file with metadata
POST
http://localhost:82/scrud/create
{
"cmsName":"Name of the sharepoint system configured in Link Enterpri.",
"repository":"Filenet_Repository",
"selectedCMS":"filenet",
"domain":"Domain_Name",
"checkout":false,
"dateTimeFormat":"MM/dd/yyyy hh:mm:ss a z",
"fileLocation":"C:\\someFolder\\someFile.txt",
"selectedCMS":"filenet",
"type":"MetadataClassName",
"checkinAsMinor":false,
"findCurrent":false,
"location":"/folderName",
"mdArray":[
{"md1": "metadataField", "md2": "metadataValue"}]
}