From e3e7de61d3f39cd90637e2c9e831ba1e8775958b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 15 Sep 2026 07:13:00 +0000 Subject: [PATCH] feat(API): add 422 response when branching is disabled for branch create #STRINGS-3030 --- doc/compiled.json | 6 +++--- paths/branches/create.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index b0e457e82..743649257 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -20740,8 +20740,8 @@ }, "post": { "summary": "Create a branch", - "description": "Create a new branch.\n\nBranch project provisioning runs asynchronously, so the newly created branch is returned in a transitional state (typically `creating_branch`) and only reaches `success` once the underlying project has been set up. Poll the branch resource until its `state` becomes `success` before performing further operations on it.\n\nRequires the Branching feature to be enabled on the account.\n\n*Note: Creating a new branch may take several minutes depending on the project size.*\n", - "operationId": "branch/create", + "description": "Create a new branch.\n\nBranch project provisioning runs asynchronously, so the newly created branch is returned in a transitional state (typically `creating_branch`) and only reaches `success` once the underlying project has been set up. Poll the branch resource until its `state` becomes `success` before performing further operations on it.\n\nRequires the Branching feature to be enabled on the account. Additionally, the project's \"Enable Branching\" setting must be turned on (configurable in the project's Advanced settings). If branching is not enabled at the project level, the request is rejected with a `422` error.\n\n*Note: Creating a new branch may take several minutes depending on the project size.*\n", + "operationId": "branches/create", "tags": [ "Branches" ], @@ -20811,7 +20811,7 @@ "application/json": { "schema": { "type": "object", - "title": "branch/create/parameters", + "title": "branches/create/parameters", "required": [ "name" ], diff --git a/paths/branches/create.yaml b/paths/branches/create.yaml index 950748745..4d4a6f292 100644 --- a/paths/branches/create.yaml +++ b/paths/branches/create.yaml @@ -5,10 +5,10 @@ description: | Branch project provisioning runs asynchronously, so the newly created branch is returned in a transitional state (typically `creating_branch`) and only reaches `success` once the underlying project has been set up. Poll the branch resource until its `state` becomes `success` before performing further operations on it. - Requires the Branching feature to be enabled on the account. + Requires the Branching feature to be enabled on the account. Additionally, the project's "Enable Branching" setting must be turned on (configurable in the project's Advanced settings). If branching is not enabled at the project level, the request is rejected with a `422` error. *Note: Creating a new branch may take several minutes depending on the project size.* -operationId: branch/create +operationId: branches/create tags: - Branches parameters: @@ -61,7 +61,7 @@ requestBody: application/json: schema: type: object - title: branch/create/parameters + title: branches/create/parameters required: - name properties: