upsertRepoReadme
Write the repo's README on the branch, replacing the whole document: {"content": markdown}. Say what the repo is for: what its tables hold, who keeps them current, and how changes land. It lands in the branch's working state, so commit it and merge it as any change.
PUT
/repos/{repo_id}/branches/{branch}/readmePath parameters
Request body JSON required
Returns
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- RepoNotFoundEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
InvalidRepoReadme | WriteRefused
JSON
One of the following:
- InvalidRepoReadmeEncoded
- WriteRefusedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded