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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":101,"title":"[A-1234] Error found in core/models.py file'","body":"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()"}