Agnostic Guides
...
Box Endpoints
Upload
1 min
docuflow 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 docuflow " }, { "kind" "optional", "name" "location", "type" "string", "description" "folder id where docuflow 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" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "81evm7wxdgryfdwshyjw6", "code" "success example\n{\n\t\\"id\\" \\"910645979785\\",\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" "example\r\n \r\n> post /scrud/upload http/1 1\r\n> host localhost 82\r\n> user agent insomnia/2021 7 2\r\n> cookie vertx web session=8c1a5313de4babf8825fe2114505da7e\r\n> content type multipart/form data; boundary=x insomnia boundary\r\n> location 154829431337\r\n> cmsname demoprod\r\n> authorization basic zg9jdwzsb3c6zg9jdwzsb3c=\r\n> accept / \r\n> content length 3693\r\n\r\n| x insomnia boundary\r\n| content disposition form data; name=\\"\\"; filename=\\"versafile 4c png\\"\r\n| content type image/png\r\n| �png\r\n| \u001a\r\n \r\nexample", "language" "none" } ], "selectedlanguageid" "xy6nlyt bp3jeey jkb3" }, "description" "upload a file using http multi part form data http headers specifying folder id, and the content system named must be specified ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }