application/json

Body Required

  • id integer | null
  • updated_at string(date-time)
  • from_ integer

    Default value is 0.

  • to_ integer

    Default value is 0.

  • content string Required

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response 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
POST /relations
curl \
 --request POST 'http://api.example.com/relations' \
 --header "Content-Type: application/json" \
 --data '{"id":42,"updated_at":"2025-05-04T09:42:00Z","from_":0,"to_":0,"content":"string"}'
Request examples
{
  "id": 42,
  "updated_at": "2025-05-04T09:42:00Z",
  "from_": 0,
  "to_": 0,
  "content": "string"
}
Response examples (200)
{
  "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"
    }
  ]
}