Settings
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.
inheritedbooleanOptionalDefault:
The result should inherit entities from parent spaces.
falseResponses
200
OK
application/json
default_branchstring · nullableOptional
default branch name
default_branch_scopestring · nullableOptional
path of the space configuring the default branch (read-only)
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
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"
}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)
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
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?