POST/spaces/api/v1/attachments/:attachmentId/copy.json
creates a copy of an attachment currently stored in S3 and associates with a given Space and Page.
Body Params
- Name
attachment
- Type
- object
- Description
- AttachmentCopy for making a copy of an existing attachment
Responses
- Code
- 201
- Type
- object
- Schema
- Description
- 201 Created
- Code
- 400
- Type
- object
- Schema
- Description
- 400 Bad Request
- Code
- 404
- Type
- object
- Schema
- Description
- 404 Not Found
- Code
- 500
- Type
- object
- Schema
- Description
- 500 Internal Server Error
201 Created
Attachment
{
"attachments": [
{
"LinkedInstallation": {
"installation": {
"id": 0,
"meta": {},
"type": "string"
}
},
"createdAt": "2024-09-06T11:47:13.090Z",
"createdBy": {
"id": 0,
"meta": {},
"type": "string"
},
"deletedAt": "2024-09-06T11:47:13.090Z",
"deletedBy": {
"id": 0,
"meta": {},
"type": "string"
},
"fileName": "string",
"id": 0,
"mimeType": "string",
"objectType": "string",
"page": {
"id": 0,
"meta": {},
"type": "string"
},
"size": 0,
"space": {
"id": 0,
"meta": {},
"type": "string"
},
"state": "string",
"updatedAt": "2024-09-06T11:47:13.090Z",
"updatedBy": {
"id": 0,
"meta": {},
"type": "string"
}
}
]
}