Agnostic Guides
...
FileNet Endpoints
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 { "tab" "examples", "url" "https //localhost 82/scrud/create", "name" "create a file", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "kind" "required", "name" "selectedcms", "type" "string", "description" "value should always be set to \\"filenet\\" to let link enterprise know which configured content system to search " }, { "kind" "required", "name" "cmsname", "type" "string", "description" "name of the filenet system configured in docuflow " }, { "name" "filelocation", "kind" "required", "type" "string", "description" "file location in local system that needs to be stored in filenet ", "children" \[] }, { "name" "repository", "kind" "required", "type" "string", "description" "filenet repository value", "children" \[] }, { "name" "location", "kind" "required", "type" "string", "description" "filenet folder where the document need to be created ", "children" \[] }, { "name" "domain", "kind" "required", "type" "string", "description" "filenet domain name", "children" \[] }, { "name" "checkout", "kind" "optional", "type" "string", "description" "if true, enables file checkout ", "children" \[] }, { "name" "datetimeformat", "kind" "required", "type" "string", "description" "update datetime property in this provided format ", "children" \[] }, { "name" "checkinasminor", "kind" "optional", "type" "string", "description" "if true, the document is checkedin as minor ", "children" \[] }, { "name" "findcurrent", "kind" "optional", "type" "string", "description" "enable to search for the latest version of document ", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "vzfozygcxsopbwzdx0yew", "code" "{\n\t\\"docid\\" \[\n\t\t\\"{18cfcd6c ffbf cc9c 8780 89272da000}\\",\n\t\tnull,\n\t\tnull\n\t]\n}", "language" "200" }, { "id" "vqkvxqfkvkg x3yyvkcwc", "code" "", "language" "500" } ], "selectedlanguageid" "vzfozygcxsopbwzdx0yew" }, "examples" { "languages" \[ { "id" "cxpum3dlkeh5ctlxe mjb", "code" "{\n \\"cmsname\\" \\"name of the filenet system configured in link enterpri \\", \n \\"repository\\" \\"filenet repository\\",\n \\"selectedcms\\" \\"filenet\\",\n \\"domain\\" \\"domain name\\",\n\t\\"checkout\\"\ false,\n\t\\"datetimeformat\\" \\"mm/dd/yyyy hh\ mm\ ss a z\\",\n \\"filelocation\\" \\"c \\\\\\\somefolder\\\\\\\somefile txt\\",\n \\"selectedcms\\" \\"filenet\\",\n\t\\"checkinasminor\\"\ false,\n\t\\"findcurrent\\"\ false,\n\t\\"location\\" \\"/foldername\\"\n}", "language" "json" } ], "selectedlanguageid" "cxpum3dlkeh5ctlxe mjb" }, "description" "create a file with no metadata", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //localhost 82/scrud/create", "name" "create a file (metadata)", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "kind" "required", "name" "selectedcms", "type" "string", "description" "value should always be set to \\"filenet\\" to let link enterprise know which configured content system to search " }, { "kind" "required", "name" "cmsname", "type" "string", "description" "name of the filenet system configured in docuflow " }, { "kind" "required", "name" "mdarray", "type" "array", "description" "a json array where each index is a json object with the keys \\"md1\\" and \\"md2\\" where md1 is the column name, and md2 is the value to be inserted in that column " }, { "name" "filelocation", "kind" "required", "type" "string", "description" "file location in local system that needs to be stored in filenet ", "children" \[] }, { "name" "location", "kind" "optional", "type" "string", "description" "filenet folder where the document need to be created ", "children" \[] }, { "name" "repository", "kind" "required", "type" "string", "description" "filenet repository value", "children" \[] }, { "name" "domain", "kind" "required", "type" "string", "description" "filenet domain name", "children" \[] }, { "name" "type", "kind" "optional", "type" "string", "description" "filenet class name attached to the document default is \\"document\\"", "children" \[] }, { "name" "checkinasminor", "kind" "optional", "type" "string", "description" "if true, the document is checkedin as minor ", "children" \[] }, { "name" "findcurrent", "kind" "optional", "type" "string", "description" "enable to search for the latest version of document ", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "0imkcf4s ykchraaxwjq3", "code" "{\n\t\\"docid\\" \[\n\t\t\\"{18cfcd6c ffbf cc9c 8780 89272da00}\\",\n\t\tnull,\n\t\tnull\n\t]\n}", "language" "200" }, { "id" "idjmyl woawfo4s5k3 bg", "code" "", "language" "500" } ], "selectedlanguageid" "0imkcf4s ykchraaxwjq3" }, "examples" { "languages" \[ { "id" "yykmw0eact jck9 cgjjs", "code" "{\n \\"cmsname\\" \\"name of the sharepoint system configured in link enterpri \\", \n \\"repository\\" \\"filenet repository\\",\n \\"selectedcms\\" \\"filenet\\",\n \\"domain\\" \\"domain name\\",\n\t\\"checkout\\"\ false,\n\t\\"datetimeformat\\" \\"mm/dd/yyyy hh\ mm\ ss a z\\",\n \\"filelocation\\" \\"c \\\\\\\somefolder\\\\\\\somefile txt\\",\n \\"selectedcms\\" \\"filenet\\",\n \\"type\\" \\"metadataclassname\\",\n\t\\"checkinasminor\\"\ false,\n\t\\"findcurrent\\"\ false,\n\t\\"location\\" \\"/foldername\\",\n\t\\"mdarray\\" \[\n\t{\\"md1\\" \\"metadatafield\\", \\"md2\\" \\"metadatavalue\\"}]\n}", "language" "json" } ], "selectedlanguageid" "yykmw0eact jck9 cgjjs" }, "description" "create a file with metadata", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }