POST

Upload File

Uploads a file to LawPanel's servers.

Important

Calls to this method must include the cookie .LawPanel.AuthCookie in order to identify you at user level. For more details about authentication please check this link. To obtain the cookie you can use the method Login.

Request URL

Request headers

string
Subscription key which provides access to this API.

Request body

Payload must contain information about the file to be uploaded. Payload must be a multipart-form with a param named "file" containing the file to be uploaded.

  • string Required file: The file to be uploaded.
  • bool Optional force_download: If you set this property to "true" files uploaded will not be opened on the browser, they'll be forced to be downloaded.

-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="file"; filename="a.txt"
Content-Type: text/plain

This is the content of a.txt.

-----------------------------9051914041544843365972754266--

Response 200

Returns a JSON structure with details about the file uploaded.

Loading...
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "size": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "ext": {
      "type": "string"
    },
    "mime_type": {
      "type": "string"
    }
  }
}
* See getting started for more information on how to use this API. You can also check the API change history.