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

Параметры пути

id
integer
обязательно

Тело

name
string | null
Maximum string length: 255
Maximum string length: 200
content_type
string
Maximum string length: 255
object_id
integer<int64>
Требуемый диапазон: 0 <= x <= 9223372036854776000

Ответ

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