API Reference
cURL
curl --location --request POST https://api.writer.com/v1/graphs/{graph_id}/file \ --header "Authorization: Bearer <token>" \ --header "Content-Type: application/json" \ --data-raw '{"file_id":"string"}'
{ "id": "7c36a365-392f-43ba-840d-8f3103b42572", "created_at": "2024-07-10T15:16:10.684826Z", "name": "example.pdf", "graph_id": [ "50daa3d0-e7d9-44a4-be42-b53e2379ebf7" ] }
Add a file to a Knowledge Graph.
Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.
Bearer <token>
<token>
The unique identifier of the Knowledge Graph.
The response is of type object.
object
Was this page helpful?