Skip to main content

Get a gist comment

GET/gists/{gist_id}/comments/{comment_id}
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
gist_id string
required

gist_id parameter

comment_id integer
required

comment_id parameter

Responses

application/json Gist Comment object

Response

author_association
string< author_association >
required

How the author is associated with the repository.

Example: OWNER

body string
required

The comment text.

Example: Body of the attachment

created_at string<date-time>
required

Example: 2011-04-18T23:23:56Z

id integer
required

Example: 1

node_id string
required

Example: MDExOkdpc3RDb21tZW50MQ==

updated_at string<date-time>
required

Example: 2011-04-18T23:23:56Z

url string<uri>
required

Example: https://api.github.com/gists/a6db0bec360bb87e9418/comments/1

user Simple User object
requirednullable

Simple User

avatar_url string<uri>
required

Example: https://github.com/images/error/octocat_happy.gif

email string
optionalnullable
events_url string
required

Example: https://api.github.com/users/octocat/events{/privacy}

followers_url string<uri>
required

Example: https://api.github.com/users/octocat/followers

following_url string
required

Example: https://api.github.com/users/octocat/following{/other_user}

gists_url string
required

Example: https://api.github.com/users/octocat/gists{/gist_id}

gravatar_id string
requirednullable

Example: 41d064eb2195891e12d0413f63227ea7

html_url string<uri>
required

Example: https://github.com/octocat

id integer
required

Example: 1

login string
required

Example: octocat

name string
optionalnullable
node_id string
required

Example: MDQ6VXNlcjE=

organizations_url string<uri>
required

Example: https://api.github.com/users/octocat/orgs

received_events_url string<uri>
required

Example: https://api.github.com/users/octocat/received_events

repos_url string<uri>
required

Example: https://api.github.com/users/octocat/repos

site_admin boolean
required
starred_at string
optional

Example: "2020-07-09T00:17:55Z"

starred_url string
required

Example: https://api.github.com/users/octocat/starred{/owner}{/repo}

subscriptions_url string<uri>
required

Example: https://api.github.com/users/octocat/subscriptions

type string
required

Example: User

url string<uri>
required

Example: https://api.github.com/users/octocat

Not modified

application/json object

Forbidden Gist

block object
optional
created_at string
optional
html_url string
optionalnullable
reason string
optional
documentation_url string
optional
message string
optional
application/json Basic Error object

Resource not found

documentation_url string
optional
message string
optional
status string
optional
url string
optional