.env
file with the name WRITER_API_KEY
.POST https://api.writer.com/v1/graphs
Parameter | Type | Description |
---|---|---|
name | string | The name of the Knowledge Graph. |
description | string | The description of the Knowledge Graph. The description should help the model understand the purpose of the Knowledge Graph and when it should be used. |
Parameter | Type | Description |
---|---|---|
id | string | The ID of the Knowledge Graph. |
created_at | string | The date and time the Knowledge Graph was created. |
name | string | The name of the Knowledge Graph. |
description | string | The description of the Knowledge Graph. |
POST /v1/graphs/{graph_id}/file
Parameter | Description |
---|---|
graph_id | The ID of the Knowledge Graph to update. |
Parameter | Description |
---|---|
file_id | The ID of the file to add to the Knowledge Graph. |
DELETE /v1/graphs/{graph_id}/file/{file_id}
Parameter | Description |
---|---|
graph_id | The ID of the Knowledge Graph to update. |
file_id | The ID of the file to remove from the Knowledge Graph. |
PUT /v1/applications/{application_id}/graphs
Parameter | Description |
---|---|
application_id | The ID of the no-code agent to update. |
Parameter | Type | Description |
---|---|---|
graph_ids | array[string] | The IDs of the Knowledge Graphs to associate with the no-code agent. |
graph_ids
parameter to an array containing the IDs of all the other Knowledge Graphs associated with the no-code agent, excluding the ID of the Knowledge Graph to remove. To remove all Knowledge Graphs from the no-code agent, set this parameter to an empty array.