Skip to main content
POST
/
evault
/
v1
/
files
/
{id}
/
duplicate_file
Duplicate File
curl --request POST \
  --url https://api.example.com/evault/v1/files/{id}/duplicate_file/ \
  --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>",
  "access": "<string>",
  "folder": "<string>",
  "root": true,
  "name": "<string>",
  "description": "<string>",
  "is_starred": true,
  "is_archived": true
}

Authorizations

api-key
string
header
required

Path Parameters

id
string
required

A unique value identifying this file upload.

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

200 - application/json
id
string
required
file
string<uri>
required
access
string | null
required
folder
string
required
root
boolean
required

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

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