PATCH /blocks/{block_id}

编辑块(部分更新),只更新请求中提供的字段。

Path parameters

  • block_id integer Required

Query parameters

  • organize boolean

    Default value is false.

application/json

Body Required

  • id integer | null
  • created_at string(date-time)
  • updated_at string(date-time)
  • storage integer | null
  • resolver string Required
  • content string Required

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • id integer | null
    • created_at string(date-time)
    • updated_at string(date-time)
    • storage integer | null
    • resolver string Required
    • 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
PATCH /blocks/{block_id}
curl \
 --request PATCH 'http://api.example.com/blocks/{block_id}' \
 --header "Content-Type: application/json" \
 --data '{"id":42,"created_at":"2025-05-04T09:42:00Z","updated_at":"2025-05-04T09:42:00Z","storage":42,"resolver":"string","content":"string"}'
Request examples
{
  "id": 42,
  "created_at": "2025-05-04T09:42:00Z",
  "updated_at": "2025-05-04T09:42:00Z",
  "storage": 42,
  "resolver": "string",
  "content": "string"
}
Response examples (200)
{
  "id": 42,
  "created_at": "2025-05-04T09:42:00Z",
  "updated_at": "2025-05-04T09:42:00Z",
  "storage": 42,
  "resolver": "string",
  "content": "string"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}