Mark files reviewed, or clear the marks.
Records who marked which file at which head commit.
PUT/api/v1/pull-requests/{id}/files/reviewed
Scopecrews
headSha must be the pull request's head as GitHub has it now (409 head_moved otherwise, with next to read the files again); a path the pull request does not change answers 422. Marking a file that is already marked, or clearing one that is not, changes nothing.
Path parameters.
idstringrequired
The pull request's id.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Body.
headShastringrequired
The head commit the files were read at; refused when the pull request has moved since. Matches ^[0-9a-f]{40}$.
pathsarrayrequired
The files to mark or clear, by their path in the pull request. 1 to 500 items.
reviewedbooleanrequired
true marks them reviewed; false clears the marks.
Response.
200 OK · JSON object
- 422 validation_failed
- Each schema error appears in
details.