@@ -20,7 +20,7 @@ READMEs support [a custom media type](#custom-media-types) for getting the raw c
2020
2121###Parameters
2222
23- Name | Type | Description
23+ Name | Type | Description
2424-----|------|--------------
2525` ref ` |` string ` | The name of the commit/branch/tag. Default: the repository’s default branch (usually` master ` )
2626
@@ -45,7 +45,7 @@ Directories and submodules do _not_ support custom media types.
4545
4646###Parameters
4747
48- Name | Type | Description
48+ Name | Type | Description
4949-----|------|--------------
5050` path ` |` string ` | The content path.
5151` ref ` |` string ` | The name of the commit/branch/tag. Default: the repository’s default branch (usually` master ` )
@@ -92,7 +92,7 @@ This method creates a new file in a repository
9292
9393###Parameters
9494
95- Name | Type | Description
95+ Name | Type | Description
9696-----|------|-------------
9797` path ` |` string ` |** Required** . The content path.
9898` message ` |` string ` |** Required** . The commit message.
@@ -110,11 +110,11 @@ information if omitted. If the `committer` information is omitted, the authentic
110110user's information is used.
111111
112112You must provide values for both` name ` and` email ` , whether you choose to use
113- ` author ` or` committer ` . Otherwise, you'll receive a` 500 ` status code.
113+ ` author ` or` committer ` . Otherwise, you'll receive a` 422 ` status code.
114114
115115Both the` author ` and` commiter ` parameters have the same keys:
116116
117- Name | Type | Description
117+ Name | Type | Description
118118-----|------|--------------
119119` name ` |` string ` | The name of the author (or commiter) of the commit
120120` email ` |` string ` | The email of the author (or commiter) of the commit
@@ -139,12 +139,12 @@ This method updates a file in a repository
139139
140140###Parameters
141141
142- Name | Type | Description
142+ Name | Type | Description
143143-----|------|--------------
144144` path ` |` string ` |** Required** . The content path.
145145` message ` |` string ` |** Required** . The commit message.
146146` content ` |` string ` |** Required** . The updated file content, Base64 encoded.
147- ` sha ` |` string ` |** Required** . The blob SHA of the file being replaced.
147+ ` sha ` |` string ` |** Required** . The blob SHA of the file being replaced.
148148` branch ` |` string ` | The branch name. Default: the repository’s default branch (usually` master ` )
149149
150150###Optional Parameters
@@ -158,11 +158,11 @@ information if omitted. If the `committer` information is omitted, the authentic
158158user's information is used.
159159
160160You must provide values for both` name ` and` email ` , whether you choose to use
161- ` author ` or` committer ` . Otherwise, you'll receive a` 500 ` status code.
161+ ` author ` or` committer ` . Otherwise, you'll receive a` 422 ` status code.
162162
163163Both the` author ` and` commiter ` parameters have the same keys:
164164
165- Name | Type | Description
165+ Name | Type | Description
166166-----|------|--------------
167167` name ` |` string ` | The name of the author (or commiter) of the commit
168168` email ` |` string ` | The email of the author (or commiter) of the commit
@@ -189,11 +189,11 @@ This method deletes a file in a repository
189189###Parameters
190190
191191
192- Name | Type | Description
192+ Name | Type | Description
193193-----|------|--------------
194194` path ` |` string ` |** Required** . The content path.
195195` message ` |` string ` |** Required** . The commit message.
196- ` sha ` |` string ` |** Required** . The blob SHA of the file being replaced.
196+ ` sha ` |` string ` |** Required** . The blob SHA of the file being replaced.
197197` branch ` |` string ` | The branch name. Default: the repository’s default branch (usually` master ` )
198198
199199###Optional Parameters
@@ -207,11 +207,11 @@ information if omitted. If the `committer` information is omitted, the authentic
207207user's information is used.
208208
209209You must provide values for both` name ` and` email ` , whether you choose to use
210- ` author ` or` committer ` . Otherwise, you'll receive a` 500 ` status code.
210+ ` author ` or` committer ` . Otherwise, you'll receive a` 422 ` status code.
211211
212212Both the` author ` and` commiter ` parameters have the same keys:
213213
214- Name | Type | Description
214+ Name | Type | Description
215215-----|------|--------------
216216` name ` |` string ` | The name of the author (or commiter) of the commit
217217` email ` |` string ` | The email of the author (or commiter) of the commit
@@ -246,7 +246,7 @@ to make a second `GET` request.
246246
247247###Parameters
248248
249- Name | Type | Description
249+ Name | Type | Description
250250-----|------|--------------
251251` archive_format ` |` string ` | Can be either` tarball ` or` zipball ` . Default:` tarball `
252252` ref ` |` string ` | A valid Git reference. Default: the repository’s default branch (usually` master ` )