Add Entities Details Endpoint POST /api/v1/entity/create
| Resource URL | /api/v1/entity/create |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Add details for a new entity.
| Parameter | Description | Required | Type | Default Value |
|---|
| name | Entity name | Yes | String | N/A |
| attributes | List of attributes | Yes | Array | N/A |
| type | Entity types | Yes | Array | N/A |
| client_id | Client identifier | Yes | String | N/A |
| ontology_id | Ontology identifier | Yes | Integer | N/A |
| created_user | User who created it | No | String | null |
| style | Style object | No | Object | null |
curl -X 'POST' \
'https://braegen.ai/api/v1/entity/create' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Sample Entity",
"attributes": ["attr1", "attr2"],
"type": ["type1"],
"client_id": "client_123",
"ontology_id": 1,
"created_user": "user_456"
}'
{
"description": "Successful Response"
}
HTTP Responses
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
Get Entity Details By Id Endpoint GET /api/v1/entity/{identifier}
| Resource URL | /api/v1/entity/{identifier} |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Retrieve details of an entity by its identifier.
| Parameter | Description | Required | Type | Default Value |
|---|
| identifier | Entity ID | Yes | Integer | N/A |
curl -X 'GET' \
'https://braegen.ai/api/v1/entity/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
{
"description": "Successful Response"
}
HTTP Responses
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
| Resource URL | /api/v1/entity/{identifier} |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Update an existing entity by its identifier.
| Parameter | Description | Required | Type | Default Value |
|---|
| identifier | Entity ID | Yes | Integer | N/A |
| Parameter | Description | Required | Type | Default Value |
|---|
| name | Entity name | No | String | null |
| attributes | List of attributes | Yes | Array | N/A |
| type | Entity types | Yes | Array | N/A |
| client_id | Client identifier | No | String | null |
| ontology_id | Ontology identifier | Yes | Integer | N/A |
| created_user | User who created it | No | String | null |
| style | Style object | No | Object | null |
curl -X 'PUT' \
'https://braegen.ai/api/v1/entity/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"attributes": ["attr1", "attr3"],
"type": ["type1"],
"ontology_id": 1
}'
{
"description": "Successful Response"
}
HTTP Responses
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
Delete Entity Endpoint DELETE /api/v1/entity/{identifier}
| Resource URL | /api/v1/entity/{identifier} |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Delete an entity by its identifier.
| Parameter | Description | Required | Type | Default Value |
|---|
| identifier | Entity ID | Yes | Integer | N/A |
curl -X 'DELETE' \
'https://braegen.ai/api/v1/entity/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
{
"description": "Successful Response"
}
HTTP Responses
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
| Resource URL | /api/v1/entity |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Retrieve a paginated list of all entities.
| Parameter | Description | Required | Type | Default Value |
|---|
| page | Page number to retrieve | No | Integer | 1 |
| page_size | Number of items per page | No | Integer | 10 |
| client_id | Client identifier | No | String | N/A |
| ontology_id | Ontology identifier | No | Integer | N/A |
| name | Entity name filter | No | String | N/A |
curl -X 'GET' \
'https://braegen.ai/api/v1/entity?page=1&page_size=10&client_id=client_123' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
{
"description": "Successful Response"
}
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
| Resource URL | /api/v1/entity/add_node |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Add a new node to the entity graph.
| Parameter | Description | Required | Type | Default Value |
|---|
| node | Entity details | Yes | Object | N/A |
| link | Relationship details | Yes | Object | N/A |
curl -X 'POST' \
'https://braegen.ai/api/v1/entity/add_node' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"node": {"name": "Node1", "attributes": ["attr1"], "type": ["type1"], "client_id": "client_123", "ontology_id": 1},
"link": {"name": "Link1", "attributes": ["attr1"], "source_id": "1", "target_id": "2", "client_id": "client_123"}
}'
{
"description": "Successful Response"
}
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
Bulk Upload Data Endpoint POST /api/v1/entity/bulk_upload
| Resource URL | /api/v1/entity/bulk_upload |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Bulk upload entity data via a file.
| Parameter | Description | Required | Type | Default Value |
|---|
| file | File to upload | Yes | Binary | N/A |
curl -X 'POST' \
'https://braegen.ai/api/v1/entity/bulk_upload' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: multipart/form-data' \
-F '[email protected]'
{
"description": "Successful Response"
}
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |
Download CSV Template For Bulk Upload Endpoint GET /api/v1/entity/download-bulk-format/
| Resource URL | /api/v1/entity/download-bulk-format/ |
|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Download the bulk upload CSV template file for uploading a set of entity data.
curl -X 'GET' \
'https://braegen.ai/api/v1/entity/download-bulk-format/' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
{
"description": "Successful Response"
}
| HTTP Code | Message |
|---|
| 200 | Successful Response |
| 422 | Validation Error |