PUT
/
v1
/
graphs
/
{graph_id}
curl --location --request PUT https://api.writer.com/v1/graphs/{graph_id} \
 --header "Authorization: Bearer <token>" \
 --header "Content-Type: application/json" \
--data-raw '{"name":"string", "description":"string"}'
{
  "id": "50daa3d0-e7d9-44a4-be42-b53e2379ebf7",
  "created_at": "2024-07-10T15:03:48.785843Z",
  "name": "Updated graph name",
  "description": "Updated graph description"
}

Authorizations

Authorization
string
header
required

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
name
string

The name of the graph (max 255 characters). Omitting this field leaves the name unchanged.

description
string

A description of the graph (max 255 characters). Omitting this field leaves the description unchanged.

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. This can be at most 255 characters.

description
string

A description of the graph. This can be at most 255 characters.