Create a commit status

POST {{baseUrl}}/repos/:owner/:repo/statuses/:sha

Users with push access in a repository can create commit statuses for a given SHA.

Note: there is a limit of 1000 statuses per sha and context within a repository. Attempts to create more than 1000 statuses will result in a validation error.

Request Body

{"state"=>"<string>", "target_url"=>"<string>", "description"=>"<string>", "context"=>"default"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/hubot_happy.gif&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDY6U3RhdHVzMQ==&quot;,&quot;state&quot;:&quot;success&quot;,&quot;description&quot;:&quot;Build has completed successfully&quot;,&quot;target_url&quot;:&quot;https://ci.example.com/1000/output&quot;,&quot;context&quot;:&quot;continuous-integration/jenkins&quot;,&quot;created_at&quot;:&quot;2012-07-20T01:19:13Z&quot;,&quot;updated_at&quot;:&quot;2012-07-20T01:19:13Z&quot;,&quot;creator&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false}}