EntityAttachment
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage entity attachments, which represent the association between entities and files.
You can create, update, delete, and search for entity attachments with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/entity-attachment/index
Returns a paginated and filterable list of entity attachments.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching entity attachments
object
object
Example
{ "filter": { "attachment_path": "list-dpi.xlsx" }, "per-page": 50, "page": 2, "sort": "-attachment_path"}
Responses
Sezione intitolata “ Responses ”List of entity attachments
object
{ "entity_attachment_id": "576331b6-fee8-4949-8bd9-d839202fb6e0", "entity_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx"}
Example
{ "entity_attachment_id": "576331b6-fee8-4949-8bd9-d839202fb6e0", "entity_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/entity-attachment/view/{id}
Retrieve an entity attachment by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the entity attachment to retrieve
Responses
Sezione intitolata “ Responses ”Entity attachment found
object
Example
{ "entity_attachment_id": "576331b6-fee8-4949-8bd9-d839202fb6e0", "entity_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx"}
Entity attachment not found
POST /v2/entity-attachment/create
Create a new entity attachment by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Entity attachment object to be created
object
Example
{ "entity_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx"}
Responses
Sezione intitolata “ Responses ”Entity attachment created successfully
object
Example
{ "entity_attachment_id": "576331b6-fee8-4949-8bd9-d839202fb6e0", "entity_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "attachment_id": "452b7448dce72057574d59f93d456ed0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/list-dpi.xlsx"}
PUT /v2/entity-attachment/update/{id}
Update an existing entity attachment by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the entity attachment to update
Request Body required
Sezione intitolata “Request Body required ”Entity attachment object with updated data
object
Example
{ "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/updated-file.xlsx"}
Responses
Sezione intitolata “ Responses ”Entity attachment updated successfully
object
Example
{ "entity_attachment_id": "576331b6-fee8-4949-8bd9-d839202fb6e0", "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/updated-file.xlsx"}
Entity attachment not found
DELETE /v2/entity-attachment/delete/{id}
Delete an entity attachment by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the entity attachment to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Entity 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