Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Settings

Find general settings of the account, organization, or project.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

inheritedbooleanOptional

The result should inherit entities from parent spaces.

Default: false
Responses
200

OK

application/json
default_branchstring · nullableOptional

default branch name

default_branch_scopestring · nullableOptional

path of the space configuring the default branch (read-only)

get/settings/general
GET /code/api/v1/settings/general?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
  "default_branch": "text",
  "default_branch_scope": "text"
}

Update general settings of the account, organization, or project.

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
default_branchstring · nullableOptional

default branch name

default_branch_scopestring · nullableOptional

path of the space configuring the default branch (read-only)

Responses
200

OK

application/json
default_branchstring · nullableOptional

default branch name

default_branch_scopestring · nullableOptional

path of the space configuring the default branch (read-only)

patch/settings/general
PATCH /code/api/v1/settings/general?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 55

{
  "default_branch": "text",
  "default_branch_scope": "text"
}
{
  "default_branch": "text",
  "default_branch_scope": "text"
}

Last updated

Was this helpful?