Attachment
Questi contenuti non sono ancora disponibili nella tua lingua.
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
Sezione intitolata “Operations” POST /v2/attachment/index
Returns a paginated and filterable list of attachments.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching attachments
object
Example
{ "key": "project_name", "value": "My Project", "per-page": 10, "page": 1, "sort": "attachment_path"}
Responses
Sezione intitolata “ 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
Sezione intitolata “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
Sezione intitolata “Path Parameters ”ID of the attachment to retrieve
Query Parameters
Sezione intitolata “Query Parameters ”Establish the fetch mode
Responses
Sezione intitolata “ 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
POST /v2/attachment/create
Upload a new attachment file or create a directory.
Request Body
Sezione intitolata “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
Sezione intitolata “ 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
PUT /v2/attachment/update/{id}
Rename or move an attachment by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the attachment to update
Request Body required
Sezione intitolata “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
Sezione intitolata “ 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 /v2/attachment/delete/{id}
Delete an attachment by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the attachment to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ 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