Attachment
Manage file attachments, including upload, update, delete, and search.
Attachments can be linked to projects or other entities and support metadata and advanced filtering.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/attachment/index
Returns a paginated and filterable list of attachments.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching attachments
object
Example
{ "key": "project_name", "value": "My Project", "per-page": 10, "page": 1, "sort": "attachment_path"}
Responses
Section titled “ Responses ”List of attachments
object
452b7448dce72057574d59f93d456ed0
/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx
File metadata
{ "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project"}
Example
{ "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx", "data": { "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project" }}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/attachment/view/{id}
Retrieve an attachment by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the attachment to retrieve
Query Parameters
Section titled “Query Parameters ”Establish the fetch mode
Responses
Section titled “ Responses ”Attachment found
object
452b7448dce72057574d59f93d456ed0
/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx
File metadata
{ "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project"}
Example
{ "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx", "data": { "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project" }}
Attachment not found
create
Section titled “create” POST /v2/attachment/create
Upload a new attachment file or create a directory.
Request Body
Section titled “Request Body ”object
The new file or directory path
Myfile.extension
For file creation only. It replaces existing file with the new one. It is ignored if you are creating a directory.
1
File to upload. If empty, creates a directory.
Responses
Section titled “ Responses ”Attachment created successfully
object
452b7448dce72057574d59f93d456ed0
/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx
File metadata
{ "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project"}
Example
{ "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx", "data": { "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project" }}
Bad request
Conflict. Destination path already exists
File size is too large
Failed to create for unknown reason
update
Section titled “update” PUT /v2/attachment/update/{id}
Rename or move an attachment by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the attachment to update
Request Body required
Section titled “Request Body required ”Attachment object with updated data
object
/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx
Example
{ "path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/renamed-file.xlsx"}
Responses
Section titled “ Responses ”Attachment updated successfully
object
452b7448dce72057574d59f93d456ed0
/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx
File metadata
{ "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "size": "137863", "project_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "project_name": "My project"}
Example
{ "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/renamed-file.xlsx"}
Bad request
Attachment not found
Conflict. Destination path already exists
Unable to rename file or directory
delete
Section titled “delete” DELETE /v2/attachment/delete/{id}
Delete an attachment by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the attachment to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Attachment deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned