Skip to main content
POST
/
evault
/
v1
/
files
Create File
curl --request POST \
  --url https://api.example.com/evault/v1/files/ \
  --header 'Content-Type: multipart/form-data' \
  --header 'api-key: <api-key>' \
  --form file='@example-file' \
  --form 'folder=<string>' \
  --form 'name=<string>' \
  --form 'description=<string>' \
  --form is_starred=true \
  --form is_archived=true
{
  "id": "<string>",
  "file": "<string>",
  "hash": "<string>",
  "mimetype": "<string>",
  "extension": "<string>",
  "file_size": 123,
  "file_size_unit": "<string>",
  "root": true,
  "access": "<string>",
  "file_share_id": "<string>",
  "is_shared": true,
  "tags_detail": [
    {
      "id": "<string>",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "folder": "<string>",
  "is_starred": true,
  "is_archived": true,
  "is_deleted": true,
  "tags": [
    "<string>"
  ]
}

Authorizations

api-key
string
header
required

Body

file
file
required
folder
string
required
Minimum string length: 1
name
string | null

Name of the file upload

Maximum string length: 255
description
string | null
Maximum string length: 500
is_starred
boolean
is_archived
boolean

Response

201 - application/json
id
string
required
file
string<uri>
required
hash
string | null
required

hash of the uploaded file

mimetype
string | null
required
extension
string
required
file_size
integer
required
file_size_unit
string
required
root
boolean
required

indicates if the file is on the root of the file heirachy.

access
string | null
required
file_share_id
string | null
required
is_shared
boolean
required
tags_detail
object[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string | null

Name of the file upload

Maximum string length: 255
description
string | null
Maximum string length: 500
folder
string | null
is_starred
boolean
is_archived
boolean
is_deleted
boolean
tags
string[]