PUT
/
v1
/
applications
/
{application_id}
/
graphs
cURL
curl --location --request PUT https://api.writer.com/v1/applications/{application_id}/graphs \
 --header "Authorization: Bearer <token>" \
 --header "Content-Type: application/json" \
--data-raw '{"graph_ids":["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e","182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e","182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]}'
{
  "graph_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
No-code applications are now called no-code agents. The Applications API, which you can use to programmatically interact with no-code agents, still uses the term application to minimize breaking changes.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.

Path Parameters

application_id
string
required

The ID of the no-code agent to update.

Only no-code agents with chat capabilities can have associated Knowledge Graphs. No-code agents with text generation and research capabilities do not support Knowledge Graphs.

Body

application/json
graph_ids
string<uuid>[]
required

A list of Knowledge Graph IDs to associate with the application. Note that this will replace the existing list of Knowledge Graphs associated with the application, not add to it.

Response

200 - application/json

Successful

graph_ids
string<uuid>[]
required

A list of Knowledge Graphs associated with the application.