---
title: Create
slug: NlNr-create
docTags: 
createdAt: 2022-01-05T08:54:05.000Z
---

Link Enterprise provides a web service endpoint that will allow you to create a document.

The following endpoint allows the following capabilities.

1. Create a File
2. Create a File with metadata



:::ApiMethodV2
```json
{
  "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 \"s3\" to let Link Enterprise know which configured content system to search."
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the s3 system configured in docuflow."
      },
      {
        "name": "fileLocation",
        "kind": "required",
        "type": "string",
        "description": "file location in local system that needs to be stored in s3.",
        "children": []
      },
      {
        "name": "location",
        "kind": "optional",
        "type": "string",
        "description": "S3 Bucket name where you want to create the document.",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "VzFOzYGCxsoPbWzdx0yew",
        "code": "{\n\t\"docId\": [\n\t\t\"01KWRZNISOYOOXWOQBKJGIRKQBPPKM\",\n\t\tnull,\n\t\tnull\n\t],\n\t\"FolderIds\": [\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n        ...\n\t]\n}",
        "language": "200"
      },
      {
        "id": "VQkVXQFKVKg-X3yyvKCWC",
        "code": "{\n\t\"docId\": [\n\t\t\"123demotest\",\n\t\tnull,\n\t\tnull\n\t]\n}",
        "language": "500"
      }
    ],
    "selectedLanguageId": "VQkVXQFKVKg-X3yyvKCWC"
  },
  "examples": {
    "languages": [
      {
        "id": "CXPum3DlkEh5CtlxE_mJB",
        "code": "{\n   \"cmsName\":\"Name of the s3 system configured in Link Enterpri.\",  \n   \"fileLocation\":\"C:\\\\someFolder\\\\someFile.txt\",\n   \"selectedCMS\":\"s3\",\n      \"location\":\"S3 Bucket Name\"\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "CXPum3DlkEh5CtlxE_mJB"
  },
  "description": "Create a file with no metadata",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "create-a-file",
  "legacyHash": "LTZYKRF4XjDFS4dN8yyEx"
}
```
:::

:::ApiMethodV2
```json
{
  "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 \"s3\" to let Link Enterprise know which configured content system to search."
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the s3 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 s3.",
        "children": []
      },
      {
        "name": "location",
        "kind": "optional",
        "type": "string",
        "description": "S3 Bucket name where you want to create the document.",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "0iMkCF4s-yKchRAaXWJq3",
        "code": "{\n\t\"docId\": [\n\t\t\"123demotest\",\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\"fileLocation\":\"C:\\\\someFolder\\\\1GB.bin\",\n       \"mdArray\":[\n               {\n         \"md1\":\"contRep\",\n         \"md2\":\"K1\"\n      }\t\t \n         ],\n   \"selectedCMS\":\"s3\",\n      \"location\":\"S3 Bucket Name\"\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "YYkmw0EaCT-jCk9-cGJJs"
  },
  "description": "Create a file with metadata",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "create-a-file-metadata",
  "legacyHash": "jwu3C_6nkyZkTjqhuztuj"
}
```
:::



