PUT
/graph
curl \
--request PUT 'http://api.example.com/graph' \
--header "Content-Type: application/json" \
--data '{"block":{"id":42,"created_at":"2025-05-04T09:42:00Z","updated_at":"2025-05-04T09:42:00Z","storage":42,"resolver":"string","content":"string"},"out_relations":[{"relation":{"id":42,"updated_at":"2025-05-04T09:42:00Z","from_":0,"to_":0,"content":"string"},"to_block":{},"from_block":{}}],"in_relations":[{"relation":{"id":42,"updated_at":"2025-05-04T09:42:00Z","from_":0,"to_":0,"content":"string"},"to_block":{},"from_block":{}}]}'
Request examples
{
"block": {
"id": 42,
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z",
"storage": 42,
"resolver": "string",
"content": "string"
},
"out_relations": [
{
"relation": {
"id": 42,
"updated_at": "2025-05-04T09:42:00Z",
"from_": 0,
"to_": 0,
"content": "string"
},
"to_block": {},
"from_block": {}
}
],
"in_relations": [
{
"relation": {
"id": 42,
"updated_at": "2025-05-04T09:42:00Z",
"from_": 0,
"to_": 0,
"content": "string"
},
"to_block": {},
"from_block": {}
}
]
}
Response examples (200)
{
"blocks": [
{
"id": 42,
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z",
"storage": 42,
"resolver": "string",
"content": "string"
}
],
"relations": [
{
"id": 42,
"updated_at": "2025-05-04T09:42:00Z",
"from_": 0,
"to_": 0,
"content": "string"
}
]
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}