Branch
An Object
A branch is a workspace for your content. Each repository supports one or more branches. You basically create all of your content items in a branch. This includes articles, blog posts, new items, documents, Office files, PDFs, etc. You name it. They go into a branch.
You can have as many branches as you want. Each branch is a completely isolated workspace. Thus, you can create your own branch for your own projects. You can work on those projects and when you're happy with it, you can share it with the rest of the team.
Or, you can create a branch and invite a bunch of people to work with you. They're your own workspaces. You can play with them however you want.
Changesets and Branches
You can think of a branch in the same way as you might think of the tree of a branch. Like that old Maple tree in the backyard when you were a kid. Remember that tree? You used to climb it. Then one day, you fell out of it and now, pretty much, that's all you hear about when you go home for family reunions.
Anyway, yeah, so a branch is like a tree branch. Each tree branch stems from a previous branch. And branches are made up of changesets.
A changeset is a bit like a layer from a transparency. When you write content into a branch, it goes onto a new changeset. Every time you make a change, like when you update something or delete something, it also goes onto a new changeset. And so, in this way, branches grow in length.
Branches also maintain a "tip" view which is the sum total of all changes, creates, updates and deletes that you make while working with the branch. Thus, at all times, the full "changeset history" of everything you've done is maintained but so is a "tip" view that gives you a real-time view of what is effectively a top-most version of all your content.
| Note |
Parent
This Branch is contained within a Repository.
Properties
The following properties are available:
| Property | Type | Default | Read-Only | Description |
|---|---|---|---|---|
| _doc | string | No | The primary ID | |
| _system | object | No | Metadata maintained by the system |
Methods
In this list, … stands for /repositories/{repositoryId}/branches/{branchId}.
- POSTAdd Team Member
…/teams/{teamKey}/members/add - POSTArchive Branch
…/archive - GETChain Branches
/repositories/{repositoryId}/branches/chain - POSTChangeset Diffs
…/diffs/changeset - POSTCheck Membership
…/teams/{teamKey}/members/check - POSTCheck Permission
…/permissions/{permissionId}/check - POSTCheck Single Authority
…/authorities/{authorityId}/check - POSTCheck multiple Authorities
/repositories/{repositoryId}/branches/authorities/check - POSTCheck multiple Permissions
/repositories/{repositoryId}/branches/permissions/check - POSTCopyfrom Branche
…/copyfrom - POSTCount Node
…/diffs/node/count - POSTCount Nodeproperty
…/diffs/nodeproperty/count - POSTCreate Branch
/repositories/{repositoryId}/branches - POSTCreate Indexe
…/indexes - POSTCreate Snapshot
/repositories/{repositoryId}/snapshots - POSTCreate a Team
…/teams - POSTDelete Branch (POST …/delete)
…/delete - DELETEDelete Branch (DELETE)
/repositories/{repositoryId}/branches/{branchId} - POSTDelete Indexe (POST …/delete)
…/indexes/{name}/delete - DELETEDelete Indexe (DELETE)
…/indexes/{name} - POSTDelete Snapshot (POST …/delete)
/repositories/{repositoryId}/snapshots/{snapshotId}/delete - DELETEDelete Snapshot (DELETE)
/repositories/{repositoryId}/snapshots/{snapshotId} - DELETEDeletes a Team
…/teams/{teamKey} - POSTExport Branch
…/export - GETExport Changes
…/changes/export - GETExport Diff
…/diff/export - POSTFind Branch Changes
…/changes/start - POSTGenerate Qnames
…/qnames/generate - GETGet Team
…/teams/{teamKey} - POSTGrant Authority
…/authorities/{authorityId}/grant - POSTGrant Authority to Team
…/teams/{teamKey}/authorities/{authorityId}/grant - POSTImport Branch
…/import - GETIndex Search
…/search/index - GETInfo Deployments
…/deployments/info - POSTInvalidate Branch Changes
…/changes/invalidate - GETList Behaviors
…/behaviors - GETList Definitions
…/definitions - GETList Descendants
…/descendants - GETList Forks
…/forks - GETList Forms
…/forms - GETList Indexes
…/indexes - GETList Joins
…/joins - GETList Merge Conflict Branches
…/merges - GETList Policies
…/policies - GETList Properties
…/properties - GETList Pull Sources
…/pull/sources - GETList Schemas
…/schemas - GETList Snapshots
/repositories/{repositoryId}/snapshots - GETList Team Authorities
…/teams/{teamKey}/authorities - GETList Teams
…/teams - GETList Tree (…/{branchId}/tree/list)
…/tree/list - GETList Tree (…/tree/list)
/repositories/{repositoryId}/branches/tree/list - GETLists Branch
/repositories/{repositoryId}/branches - GETLists Team Members
…/teams/{teamKey}/members - POSTMerge Branch
…/merge - POSTNetwork Branches
/repositories/{repositoryId}/branches/network - GETNodediffs History
…/history/nodediffs - POSTQueries for Branch
/repositories/{repositoryId}/branches/query - POSTQuery (…/branches/{branchId}/behaviors/query)
…/behaviors/query - POSTQuery (…/deployments/verification/query)
/repositories/{repositoryId}/deployments/verification/query - POSTQuery (…/branches/{branchId}/definitions/query)
…/definitions/query - GETRead ACL
…/acl/list - GETRead ACL for Principal
…/acl - POSTRead Authorities Report
…/authorities - GETRead Branch
/repositories/{repositoryId}/branches/{branchId} - GETRead Children Definition
…/definitions/{qname}/children - GETRead Conflicting Branche
…/conflicting - GETRead Definition
…/definitions/{qname} - GETRead Document
…/search/index/documents/{docId} - GETRead Info Branche
…/info - GETRead Qname
…/qnames/{qname} - GETRead Schema
…/schemas/{qname} - GETRead Snapshot
/repositories/{repositoryId}/snapshots/{snapshotId} - GETRead Tree Branche
…/tree - POSTRebase Branch
…/rebase/start - POSTRemove Team Member
…/teams/{teamKey}/members/remove - POSTReset Branch
…/reset/start - POSTRevert Branch
…/revert/start - POSTRevert Changes
…/changes/revert - POSTRevoke Authority
…/authorities/{authorityId}/revoke - POSTRevoke Authority from Team
…/teams/{teamKey}/authorities/{authorityId}/revoke - POSTStart Cherrypick
…/cherrypick/start - POSTStart Copyfrom
…/copyfrom/start - POSTStart Create (…/{branchId}/view/create/start)
…/view/create/start - POSTStart Create (…/create/start)
/repositories/{repositoryId}/branches/create/start - POSTStart Create (…/{branchId}/path/index/create/start)
…/path/index/create/start - POSTStart Create (…/{branchId}/search/index/create/start)
…/search/index/create/start - POSTStart Create (…/{branchId}/embeddings/index/create/start)
…/embeddings/index/create/start - POSTStart Diff
…/diff/start - POSTStart Drop (…/embeddings/index/drop/start)
…/embeddings/index/drop/start - POSTStart Drop (…/search/index/drop/start)
…/search/index/drop/start - POSTStart History
…/history/start - POSTStart Merge
…/merge/start - POSTStart Recreatefilenames
…/nodes/recreatefilenames/start - POSTStart Repair
…/repair/start - POSTStart Snapshots
/repositories/{repositoryId}/snapshots/start - POSTStart Validate (…/search/index/validate/start)
…/search/index/validate/start - POSTStart Validate (…/nodes/validate/start)
…/nodes/validate/start - POSTStart Validate (…/path/index/validate/start)
…/path/index/validate/start - POSTStart Verification
…/deployments/verification/start - POSTStats Diffs
…/diffs/stats - GETSummarize Access Policy
…/teams/{teamKey}/access/policies/summary - GETTree Branches
/repositories/{repositoryId}/branches/tree - POSTUnarchive Branch
…/unarchive - POSTUpdate Branch (POST …/update)
…/update - PUTUpdate Branch (PUT)
/repositories/{repositoryId}/branches/{branchId} - PUTUpdate a Team
…/teams/{teamKey} - POSTValidate Definition
…/definitions/{qname}/validate
Add Team Member
POST /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/members/add
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
| id | Yes | string |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Archive Branch
POST /repositories/{repositoryId}/branches/{branchId}/archive
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Chain Branches
GET /repositories/{repositoryId}/branches/chain
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
Changeset Diffs
POST /repositories/{repositoryId}/branches/{branchId}/diffs/changeset
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Check Membership
POST /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/members/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
| id | Yes | string |
Response
{
"type": "object",
"description": "Belongs",
"extends": "status",
"properties": {
"belongs": {
"type": "boolean"
},
"ok": null
}
}
Check Permission
POST /repositories/{repositoryId}/branches/{branchId}/permissions/{permissionId}/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| permissionId | Yes | string | The ID of the permission |
| id | Yes | string |
Response
{
"$ref": "#/components/schemas/checkPermission"
}
Check Single Authority
POST /repositories/{repositoryId}/branches/{branchId}/authorities/{authorityId}/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Check",
"extends": "status",
"properties": {
"check": {
"type": "boolean"
},
"ok": null
}
}
Check multiple Authorities
POST /repositories/{repositoryId}/branches/authorities/check
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
Response
{
"type": "object",
"description": "Check Multiple Authorities Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"authorityId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Check multiple Permissions
POST /repositories/{repositoryId}/branches/permissions/check
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
Response
{
"type": "object",
"description": "Check Multiple Permissions Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"permissionId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Copyfrom Branche
POST /repositories/{repositoryId}/branches/{branchId}/copyfrom
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Count Node
POST /repositories/{repositoryId}/branches/{branchId}/diffs/node/count
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Count Nodeproperty
POST /repositories/{repositoryId}/branches/{branchId}/diffs/nodeproperty/count
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Create Branch
POST /repositories/{repositoryId}/branches
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| changeset | Yes | string | The ID of the changeset to fork the new branch from |
| branch | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Create Indexe
POST /repositories/{repositoryId}/branches/{branchId}/indexes
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Create Snapshot
POST /repositories/{repositoryId}/snapshots
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| changeset | Yes | string |
Create a Team
POST /repositories/{repositoryId}/branches/{branchId}/teams
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"extends": "document",
"description": "Team",
"properties": {
"teamableObjectTypeId": {
"type": "string",
"readonly": true
},
"teamableObjectId": {
"type": "string",
"readonly": true
},
"key": {
"type": "string"
},
"groupId": {
"type": "string"
},
"groupDomainId": {
"type": "string"
},
"roleKeys": {
"type": "array",
"items": {
"type": "string"
}
},
"_doc": null,
"_system": null
}
}
Delete Branch (POST …/delete)
POST /repositories/{repositoryId}/branches/{branchId}/delete
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Branch (DELETE)
DELETE /repositories/{repositoryId}/branches/{branchId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Indexe (POST …/delete)
POST /repositories/{repositoryId}/branches/{branchId}/indexes/{name}/delete
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| name | Yes | string |
Delete Indexe (DELETE)
DELETE /repositories/{repositoryId}/branches/{branchId}/indexes/{name}
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| name | Yes | string |
Delete Snapshot (POST …/delete)
POST /repositories/{repositoryId}/snapshots/{snapshotId}/delete
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| snapshotId | Yes | string |
Delete Snapshot (DELETE)
DELETE /repositories/{repositoryId}/snapshots/{snapshotId}
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| snapshotId | Yes | string |
Deletes a Team
DELETE /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Export Branch
POST /repositories/{repositoryId}/branches/{branchId}/export
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Export Configuration",
"properties": {
"startDate": {
"type": "object",
"description": "Only include objects whose modification date is after this time (epoch millis). This is used for partial or rolling exports."
},
"endDate": {
"type": "object",
"description": "Only include objects whose modification date is before this time (epoch millis). This is used for partial or rolling exports."
},
"startChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or beyond the specified changeset."
},
"endChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or before the specified changeset."
},
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during export."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during export."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during export."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during export."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during export."
},
"artifactDependencies": {
"type": "array",
"items": {
"type": "object"
}
},
"artifactIncludes": {
"type": "array",
"items": {
"type": "object"
}
},
"forceIncludes": {
"type": "boolean"
}
}
}
Export Changes
GET /repositories/{repositoryId}/branches/{branchId}/changes/export
Parameters (4)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string | |
| view | No | string |
Export Diff
GET /repositories/{repositoryId}/branches/{branchId}/diff/export
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Find Branch Changes
POST /repositories/{repositoryId}/branches/{branchId}/changes/start
Parameters (8)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string | The ID of the source branch. The target branch is the branch identified by the resource path. |
| view | No | string | A view to apply. The valid value is editorial. |
| filter | No | string | |
| source | No | string | |
| target | No | string | |
| force | No | string |
Generate Qnames
POST /repositories/{repositoryId}/branches/{branchId}/qnames/generate
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Get Team
GET /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"extends": "document",
"description": "Team",
"properties": {
"teamableObjectTypeId": {
"type": "string",
"readonly": true
},
"teamableObjectId": {
"type": "string",
"readonly": true
},
"key": {
"type": "string"
},
"groupId": {
"type": "string"
},
"groupDomainId": {
"type": "string"
},
"roleKeys": {
"type": "array",
"items": {
"type": "string"
}
},
"_doc": null,
"_system": null
}
}
Grant Authority
POST /repositories/{repositoryId}/branches/{branchId}/authorities/{authorityId}/grant
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Grant Authority to Team
POST /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/authorities/{authorityId}/grant
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
| authorityId | Yes | string | The ID or authority key for the authority |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Import Branch
POST /repositories/{repositoryId}/branches/{branchId}/import
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Import Configuration",
"properties": {
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during import."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during import."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during import."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during import."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during import."
},
"strategy": {
"type": "array",
"items": {
"type": "string"
},
"default": "CLONE",
"description": "Either CLONE or COPY_EVERYTHING. Use CLONE to keep the same IDs on import. Use COPY_EVERYTHING to generate all new IDs for all entries on every import."
},
"substitutions": {
"type": "string"
}
}
}
Index Search
GET /repositories/{repositoryId}/branches/{branchId}/search/index
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Info Deployments
GET /repositories/{repositoryId}/branches/{branchId}/deployments/info
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| state | Yes | string |
Invalidate Branch Changes
POST /repositories/{repositoryId}/branches/{branchId}/changes/invalidate
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Behaviors
GET /repositories/{repositoryId}/branches/{branchId}/behaviors
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Definitions
GET /repositories/{repositoryId}/branches/{branchId}/definitions
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Descendants
GET /repositories/{repositoryId}/branches/{branchId}/descendants
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Forks
GET /repositories/{repositoryId}/branches/{branchId}/forks
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Forms
GET /repositories/{repositoryId}/branches/{branchId}/forms
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Indexes
GET /repositories/{repositoryId}/branches/{branchId}/indexes
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Joins
GET /repositories/{repositoryId}/branches/{branchId}/joins
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Merge Conflict Branches
GET /repositories/{repositoryId}/branches/{branchId}/merges
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| mergeType | No | string |
List Policies
GET /repositories/{repositoryId}/branches/{branchId}/policies
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| containerOnly | No | string |
List Properties
GET /repositories/{repositoryId}/branches/{branchId}/properties
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| excludeSystem | Yes | boolean |
List Pull Sources
GET /repositories/{repositoryId}/branches/{branchId}/pull/sources
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| all | No | string |
List Schemas
GET /repositories/{repositoryId}/branches/{branchId}/schemas
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
List Snapshots
GET /repositories/{repositoryId}/snapshots
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
List Team Authorities
GET /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/authorities
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "List of Authorities",
"properties": {
"authorities": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
List Teams
GET /repositories/{repositoryId}/branches/{branchId}/teams
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
List Tree (…/{branchId}/tree/list)
GET /repositories/{repositoryId}/branches/{branchId}/tree/list
Parameters (10)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| mode | No | string | |
| archived | Yes | string | |
| snapshots | Yes | string | |
| releases | Yes | string | |
| editorial | Yes | string | |
| active | Yes | string | |
| inactive | Yes | string | |
| temporary | Yes | string |
List Tree (…/tree/list)
GET /repositories/{repositoryId}/branches/tree/list
Parameters (4)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| snapshot | Yes | string | |
| archived | Yes | string | |
| temporary | Yes | string |
Lists Branch
GET /repositories/{repositoryId}/branches
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_branch"
}
}
}
}
Lists Team Members
GET /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/members
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Merge Branch
POST /repositories/{repositoryId}/branches/{branchId}/merge
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string | The ID of the source branch. The target branch is the branch identified by the resource path. |
Network Branches
POST /repositories/{repositoryId}/branches/network
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| workspace | Yes | string |
Nodediffs History
GET /repositories/{repositoryId}/branches/{branchId}/history/nodediffs
Parameters (5)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| root | No | string | |
| tip | No | string | |
| include_root | No | string |
Queries for Branch
POST /repositories/{repositoryId}/branches/query
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_branch"
}
}
}
}
Query (…/branches/{branchId}/behaviors/query)
POST /repositories/{repositoryId}/branches/{branchId}/behaviors/query
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap"
}
}
}
}
Query (…/deployments/verification/query)
POST /repositories/{repositoryId}/deployments/verification/query
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap"
}
}
}
}
Query (…/branches/{branchId}/definitions/query)
POST /repositories/{repositoryId}/branches/{branchId}/definitions/query
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap"
}
}
}
}
Read ACL
GET /repositories/{repositoryId}/branches/{branchId}/acl/list
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Result Map of ACL entries",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_doc": {
"type": "string",
"title": "Principal ID"
},
"name": {
"type": "string",
"title": "Principal Name"
},
"type": {
"type": "string",
"title": "Principal Type"
},
"domainId": {
"type": "string"
},
"domainQualifiedId": {
"type": "string"
},
"domainQualifiedName": {
"type": "string"
},
"principalId": {
"type": "string",
"title": "Principal ID"
},
"userEmail": {
"type": "string"
},
"userFirstName": {
"type": "string"
},
"userLastName": {
"type": "string"
},
"authorities": {
"type": "array",
"title": "Authorities",
"items": {
"type": "string",
"title": "Authority Key"
}
}
}
}
}
}
}
Read ACL for Principal
GET /repositories/{repositoryId}/branches/{branchId}/acl
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Response
{
"type": "object",
"description": "Result Map of Authority Keys",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "string",
"description": "Authority Key"
}
}
}
}
Read Authorities Report
POST /repositories/{repositoryId}/branches/{branchId}/authorities
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Authority Report",
"properties": {
"principalId": {
"type": "object",
"properties": {
"id": {
"type": "object",
"properties": {
"role-key": {
"type": "string"
},
"principal": {
"type": "string"
},
"permissioned": {
"type": "string"
},
"inheritsFrom": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"principal": {
"type": "string"
},
"permissioned": {
"type": "string"
}
}
}
}
}
}
}
}
}
Read Branch
GET /repositories/{repositoryId}/branches/{branchId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"extends": "document",
"description": "Branch",
"container": "repository",
"properties": {
"_doc": null,
"_system": null
}
}
Read Children Definition
GET /repositories/{repositoryId}/branches/{branchId}/definitions/{qname}/children
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| qname | Yes | string |
Read Conflicting Branche
GET /repositories/{repositoryId}/branches/{branchId}/conflicting
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Read Definition
GET /repositories/{repositoryId}/branches/{branchId}/definitions/{qname}
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| qname | Yes | string |
Read Document
GET /repositories/{repositoryId}/branches/{branchId}/search/index/documents/{docId}
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| docId | Yes | string |
Read Info Branche
GET /repositories/{repositoryId}/branches/{branchId}/info
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Read Qname
GET /repositories/{repositoryId}/branches/{branchId}/qnames/{qname}
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| qname | Yes | string |
Read Schema
GET /repositories/{repositoryId}/branches/{branchId}/schemas/{qname}
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| qname | Yes | string |
Read Snapshot
GET /repositories/{repositoryId}/snapshots/{snapshotId}
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| snapshotId | Yes | string |
Read Tree Branche
GET /repositories/{repositoryId}/branches/{branchId}/tree
Parameters (10)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| mode | No | string | |
| archived | Yes | string | |
| snapshots | Yes | string | |
| releases | Yes | string | |
| editorial | Yes | string | |
| active | Yes | string | |
| inactive | Yes | string | |
| temporary | Yes | string |
Rebase Branch
POST /repositories/{repositoryId}/branches/{branchId}/rebase/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Remove Team Member
POST /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/members/remove
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Reset Branch
POST /repositories/{repositoryId}/branches/{branchId}/reset/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Revert Branch
POST /repositories/{repositoryId}/branches/{branchId}/revert/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Revert Changes
POST /repositories/{repositoryId}/branches/{branchId}/changes/revert
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Revoke Authority
POST /repositories/{repositoryId}/branches/{branchId}/authorities/{authorityId}/revoke
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Revoke Authority from Team
POST /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/authorities/{authorityId}/revoke
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
| authorityId | Yes | string | The ID or authority key for the authority |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Start Cherrypick
POST /repositories/{repositoryId}/branches/{branchId}/cherrypick/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Copyfrom
POST /repositories/{repositoryId}/branches/{branchId}/copyfrom/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string |
Start Create (…/{branchId}/view/create/start)
POST /repositories/{repositoryId}/branches/{branchId}/view/create/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Create (…/create/start)
POST /repositories/{repositoryId}/branches/create/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branch | Yes | string | |
| changeset | No | string |
Start Create (…/{branchId}/path/index/create/start)
POST /repositories/{repositoryId}/branches/{branchId}/path/index/create/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Create (…/{branchId}/search/index/create/start)
POST /repositories/{repositoryId}/branches/{branchId}/search/index/create/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Create (…/{branchId}/embeddings/index/create/start)
POST /repositories/{repositoryId}/branches/{branchId}/embeddings/index/create/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Diff
POST /repositories/{repositoryId}/branches/{branchId}/diff/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string | The ID of the source branch. The target branch is the branch identified by the resource path. |
Start Drop (…/embeddings/index/drop/start)
POST /repositories/{repositoryId}/branches/{branchId}/embeddings/index/drop/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Drop (…/search/index/drop/start)
POST /repositories/{repositoryId}/branches/{branchId}/search/index/drop/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start History
POST /repositories/{repositoryId}/branches/{branchId}/history/start
Parameters (6)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| root | No | string | |
| tip | No | string | |
| include_root | No | string | |
| view | No | string |
Start Merge
POST /repositories/{repositoryId}/branches/{branchId}/merge/start
Parameters (4)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| id | Yes | string | The ID of the source branch. The target branch is the branch identified by the resource path. |
| dryRun | No | boolean |
_doc); poll the job to see when it completes and how the merge went.
Start Recreatefilenames
POST /repositories/{repositoryId}/branches/{branchId}/nodes/recreatefilenames/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Repair
POST /repositories/{repositoryId}/branches/{branchId}/repair/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| commit | No | string |
Start Snapshots
POST /repositories/{repositoryId}/snapshots/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| changeset | Yes | string |
Start Validate (…/search/index/validate/start)
POST /repositories/{repositoryId}/branches/{branchId}/search/index/validate/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| repair | No | string |
Start Validate (…/nodes/validate/start)
POST /repositories/{repositoryId}/branches/{branchId}/nodes/validate/start
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Start Validate (…/path/index/validate/start)
POST /repositories/{repositoryId}/branches/{branchId}/path/index/validate/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| repair | No | string |
Start Verification
POST /repositories/{repositoryId}/branches/{branchId}/deployments/verification/start
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| state | Yes | string |
Stats Diffs
POST /repositories/{repositoryId}/branches/{branchId}/diffs/stats
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Summarize Access Policy
GET /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}/access/policies/summary
Parameters (6), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
| scope | No | string | |
| info | No | string | |
| order | No | string |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Tree Branches
GET /repositories/{repositoryId}/branches/tree
Parameters (4)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| snapshot | Yes | string | |
| archived | Yes | string | |
| temporary | Yes | string |
Unarchive Branch
POST /repositories/{repositoryId}/branches/{branchId}/unarchive
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Update Branch (POST …/update)
POST /repositories/{repositoryId}/branches/{branchId}/update
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update Branch (PUT)
PUT /repositories/{repositoryId}/branches/{branchId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update a Team
PUT /repositories/{repositoryId}/branches/{branchId}/teams/{teamKey}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Validate Definition
POST /repositories/{repositoryId}/branches/{branchId}/definitions/{qname}/validate
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| repositoryId | Yes | string | The ID of the repository |
| branchId | Yes | string | The ID of the branch |
| qname | Yes | string |
Schema
{
"type": "object",
"extends": "document",
"description": "Branch",
"container": "repository",
"properties": {
"_doc": null,
"_system": null
},
"id": "branch"
}