Skip to main content
PATCH
Update repository

Authorizations

Authorization
string
header
required

Path Parameters

repo
string<string>
required

The repository name

Body

application/json
op
string
required

The type of operation to perform

Example:

"replace"

path
string
required

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

Example:

"/exampleField"

value
any

A JSON value used in "add", "replace", and "test" operations

Example:

"new example value"

Response

Repository response

name
string
required

The repository name

Example:

"LaunchDarkly-Docs"

type
enum<string>
required

The type of repository

Available options:
bitbucket,
custom,
github,
gitlab
Example:

"github"

defaultBranch
string
required

The repository's default branch

Example:

"main"

enabled
boolean
required

Whether or not a repository is enabled for code reference scanning

Example:

true

version
integer
required

The version of the repository's saved information

Example:

3

A URL to access the repository

Example:

"https://github.com/launchdarkly/LaunchDarkly-Docs"

commitUrlTemplate
string

A template for constructing a valid URL to view the commit

Example:

"https://github.com/launchdarkly/LaunchDarkly-Docs/commit/${sha}"

hunkUrlTemplate
string

A template for constructing a valid URL to view the hunk

Example:

"https://github.com/launchdarkly/LaunchDarkly-Docs/blob/${sha}/${filePath}#L${lineNumber}"

branches
object[]

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

_access
object