s3copy
description
Copies a file between S3 locations within the Buzzy platform. This endpoint allows you to duplicate files from one resource to another.
parameters
The X-Auth-Token
and X-User-Id
are derived from the values authToken
and userId
returned from the login endpoint and are used in the HTTP header.
resource
{
"sourceResourceID":"<source resource id>",
"destinationResourceID":"<destination resource id>",
"fileKey":"<file key to copy>",
"newFileKey":"<optional new file key>"
}
response
Returns the status of the copy operation and a signed URL for the copied file.
example
POST /api/microappchild/s3copy
X-Auth-Token:<insert token here>
X-User-Id:<insert user id here>
{
"sourceResourceID":"source123",
"destinationResourceID":"dest456",
"fileKey":"documents/report.pdf",
"newFileKey":"documents/copied-report.pdf"
}
You should get back:
{
"status": "success",
"signedUrl": "https://s3.amazonaws.com/bucket/path/to/copied-file"
}
Last updated