updateRepo
Change the repo's description with {"description": text}, at most 280 characters, or null to clear it, or archive it with {"archived":true}: an archived repo keeps its data for reading but takes no writes and runs no tools, and {"archived":false} unarchives it. A key left out leaves that setting alone. Takes update on the repo; archiving is refused with RepoWorkflowRunsActive while any workflow run hasn't finished.
PATCH
/repos/{repo_id}Path parameters
Request body JSON required
Returns
200
Repo
JSON
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
409
RepoWorkflowRunsActive
413
RequestBodyTooLarge
500
OrgFailure | RepoFailure
JSON
One of the following:
- OrgFailureEncoded
- RepoFailureEncoded
503
SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded