Copy a file
POST /api/2.0/files/file/{fileId}/copyas
Request
Copies (and converts if possible) an existing file to the specified folder.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Path
- fileId
string
File ID
Body
- destFolderId
string
Destination folder ID
- destTitle
string
Destination file title
- toForm
boolean
Convert to form
Examples
POST /api/2.0/files/file/%7BfileId%7D/copyas HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: example.com
curl --request POST \
--url https://example.com/api/2.0/files/file/%7BfileId%7D/copyas \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
200
Copied file
- Name
string
- UpdatedBy
object
- Id
string
uuid - DisplayName
string
- Title
string
- AvatarSmall
string
- ProfileUrl
string
- Updated
string
- Location
string