Create a content attachment

POST {{baseUrl}}/content_references/:content_reference_id/attachments

Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the id of the content reference from the content_reference event to create an attachment.

The app must create a content attachment within six hours of the content reference URL being posted. See [Using content attachments](https://developer.github.com/apps/using-content-attachments/) for details about content attachments.

You must use an installation access token to access this endpoint.

Request Body

{"title"=>"<string>", "body"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:101,&quot;title&quot;:&quot;[A-1234] Error found in core/models.py file&#39;&quot;,&quot;body&quot;:&quot;You have used an email that already exists for the user_email_uniq field.\n ## DETAILS:\n\nThe (email)=(Octocat@github.com) already exists.\n\n The error was found in core/models.py in get_or_create_user at line 62.\n\n self.save()&quot;}