application/json

Body Required

  • block object Required
    Hide block attributes Show block attributes object
    • id integer | null
    • created_at string(date-time)
    • updated_at string(date-time)
    • storage integer | null
    • resolver string Required
    • content string Required
  • out_relations array[object]

    Default value is [] (empty).

    Hide out_relations attributes Show out_relations attributes object
    • relation object Required
      Hide relation attributes Show relation attributes object
      • id integer | null
      • updated_at string(date-time)
      • from_ integer

        Default value is 0.

      • to_ integer

        Default value is 0.

      • content string Required
    • to_block object | null

      A form for creating a block and its relations

    • from_block object | null

      A form for creating a block and its relations

  • in_relations array[object]

    Default value is [] (empty).

    Hide in_relations attributes Show in_relations attributes object
    • relation object Required
      Hide relation attributes Show relation attributes object
      • id integer | null
      • updated_at string(date-time)
      • from_ integer

        Default value is 0.

      • to_ integer

        Default value is 0.

      • content string Required
    • to_block object | null

      A form for creating a block and its relations

    • from_block object | null

      A form for creating a block and its relations

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • blocks array[object] Required
      Hide blocks attributes Show blocks attributes object
      • id integer | null
      • created_at string(date-time)
      • updated_at string(date-time)
      • storage integer | null
      • resolver string Required
      • content string Required
    • relations array[object] Required
      Hide relations attributes Show relations attributes object
      • id integer | null
      • updated_at string(date-time)
      • from_ integer

        Default value is 0.

      • to_ integer

        Default value is 0.

      • content string Required
  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
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"
    }
  ]
}