Update repository

Update details of an existing repository.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • repo:update
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The slug of the organization

string
required

The slug of the repository

Query Params
string

The workspace of the repository

Body Params
string

The name of the repository

string | null

The description of the repository

string | null

The homepage URL of the repository

string
enum
Defaults to private

The visibility of the repository

Allowed:
boolean
Defaults to false

Whether the repository is archived or not

string | null
Defaults to main

The default branch of the repository

string

The workspace of the repository

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json