POST
/
v1
/
graphs
/
{graph_id}
/
file
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"
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

graph_id
string
required

The unique identifier of the graph.

Body

application/json
file_id
string
required

The unique identifier of the file.

Response

200 - application/json
id
string
required

A unique identifier of the graph.

created_at
string
required

The timestamp when the graph was created.

name
string
required

The name of the graph.

graph_ids
string[]
required

A list of graph IDs that the file is associated with.