id
of the content reference from the content_reference
event to create an attachment.curl --location --request POST 'https://api.github.com/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"
}