Update repository

Update a repository’s settings. Updating repository settings uses a JSON patch or JSON merge patch representation of the desired changes. To learn more, read Updates.

Path parameters

repostringRequired

The repository name

Headers

AuthorizationstringRequired

Request

This endpoint expects a list of objects.
opstringRequired

The type of operation to perform

pathstringRequired

A JSON Pointer string specifying the part of the document to operate on

valueanyOptional

Response

Repository response

namestring

The repository name

typeenum

The type of repository

Allowed values:
defaultBranchstring

The repository’s default branch

enabledboolean

Whether or not a repository is enabled for code reference scanning

versioninteger

The version of the repository’s saved information

commitUrlTemplatestringOptional

A template for constructing a valid URL to view the commit

hunkUrlTemplatestringOptional

A template for constructing a valid URL to view the hunk

brancheslist of objectsOptional

An array of the repository’s branches that have been scanned for code references

_accessobjectOptional

Errors