EntityAttachment
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
Section titled “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
Section titled “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
Section titled “ 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
Section titled “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
Section titled “Path Parameters ”ID of the entity attachment to retrieve
Responses
Section titled “ 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
create
Section titled “create” POST /v2/entity-attachment/create
Create a new entity attachment by providing the required details.
Request Body required
Section titled “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
Section titled “ 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"}
update
Section titled “update” PUT /v2/entity-attachment/update/{id}
Update an existing entity attachment by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the entity attachment to update
Request Body required
Section titled “Request Body required ”Entity attachment object with updated data
object
Example
{ "attachment_path": "/projects/569bc3c7-ead1-41e8-85ab-fdccf7085c5f/updated-file.xlsx"}
Responses
Section titled “ 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
Section titled “delete” 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
Section titled “Path Parameters ”ID of the entity attachment to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ 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