---
title: Upload
slug: 7s4o-upload
docTags: 
createdAt: 2022-01-30T21:55:47.000Z
---

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.

:::ApiMethodV2
```json
{
  "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"
  },
  "autoGeneratedAnchorSlug": "upload",
  "legacyHash": "SYWoaQaa1CeAs6I_xHZZn"
}
```
:::





