Skip to main content
PATCH
Changes a repository’s name or description. Send only the fields you want to change. Fields you leave out keep their current value. Set description to null to clear it.

Authentication

Requires an API key, or an OAuth token with repositories:write. The caller also needs edit access to the repository.

Path parameters

string
required
The repository id.

Body parameters

string
The new name, up to 200 characters.
string | null
The new description, up to 2,000 characters, or null to clear it.

Response

Returns 200 with the updated repository, in the shape Get repository returns.

Errors