Перейти к основному содержанию
POST
/
v1
/
attachments
/
comments
cURL
curl --request POST \
  --url https://api.example.com/v1/attachments/comments/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "content_type": "<string>",
  "object_id": 4611686018427388000,
  "context": null
}
'
{
  "id": 123,
  "body": "<string>",
  "user": 123,
  "content_type": "<string>",
  "object_id": 4611686018427388000,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "context": null
}

Тело

body
string
обязательно
content_type
string
обязательно
Maximum string length: 255
object_id
integer<int64>
обязательно
Требуемый диапазон: 0 <= x <= 9223372036854776000
context
unknown

Ответ

201 - application/json
id
integer
обязательно
body
string
обязательно
user
integer | null
обязательно
content_type
string
обязательно
Maximum string length: 255
object_id
integer<int64>
обязательно
Требуемый диапазон: 0 <= x <= 9223372036854776000
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
context
unknown