Agnostic Guides
...
FileNet Endpoints
Upload
1 min
link enterprise provides an endpoint to upload files to this is strictly for uploading files, and if you require metadata to be transferred following up with an update endpoint call is required { "tab" "request", "url" "https //localhost 82/scrud/upload", "name" "upload", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "cmsname", "type" "string", "description" "name of the content management system configured in link enterprise " }, { "kind" "required", "name" "location", "type" "string", "description" "folder id where link enterprise is uploading the file (box folder id) else root folder used " }, { "kind" "optional", "name" "content type", "type" "string", "description" "multipart/form data; boundary=(insert boundary)\n\nexample is included in code examples" }, { "name" "repository", "kind" "required", "type" "string", "description" "filenet repository where the file exists", "children" \[] }, { "name" "domain", "kind" "required", "type" "string", "description" "filenet domain where the file exists", "children" \[] } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "81evm7wxdgryfdwshyjw6", "code" "success example\n{\n\t\\"id\\" \\"{75c8f438 a625 c99b 848e 8ad7c2f00000}\\",\n\t\\"result\\" \\"success\\"\n}\n\nfailed example\n{\n\t\\"id\\" null \n\t\\"result\\" \\"fail\\"\n}", "language" "200" }, { "id" "6u9gw gsaoldqs3wcfi9t", "code" "", "language" "500" } ], "selectedlanguageid" "81evm7wxdgryfdwshyjw6" }, "examples" { "languages" \[ { "id" "xy6nlyt bp3jeey jkb3", "code" "post /scrud/upload http/1 1\ncookie vertx web session=135e85c919328477ec243e270a692c4d\nuser agent insomnia/2023 5 8\ncmsname fn test\nlocation /testfilenet\naccept / \nrepository abc os1\ndomain abc p8dom\nauthorization basic ywrtaw46ywrtaw4=\ncontent type multipart/form data; boundary= 011000010111000001101001\nhost localhost 82\ncontent length 172\n\n 011000010111000001101001\ncontent disposition form data; name=\\"\\"; filename=\\"pospaper cod 04 pdf\\"\ncontent type application/pdf\n\n\n 011000010111000001101001 ", "language" "none" } ], "selectedlanguageid" "xy6nlyt bp3jeey jkb3" }, "description" "upload a file using http multi part form data http headers specifying repository, location, domain and the content system named must be specified ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }