id
and repository
full_name
of the content reference from the content_reference
event to create an attachment.curl --location --request POST 'https://api.github.com/repos///content_references//attachments' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": "Body of the attachment",
"title": "Title of the attachment"
}'
{
"body": "Body of the attachment",
"id": 21,
"node_id": "MDE3OkNvbnRlbnRBdHRhY2htZW50MjE=",
"title": "Title of the attachment"
}
Authorization: Bearer ********************
repository
full_name
of the content_reference
event.repository
full_name
of the content_reference
event.id
of the content_reference
event.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通