Merge branches
POST https://{{base_url}}/v3/stacks/branches_merge?compare_branch=redesign&default_merge_strategy=merge_prefer_base&merge_comment=merge_comment
The Merge branches request merges the specified two branches as per the merge strategy selected.
To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken.Â
Read more about it in Authentication.
For more information, refer to the Merge branches API Reference document
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
base_branch | string | The base branch serves as the foundation where changes can be merged. | |
compare_branch | string | Enter the branch from which you want to merge changes into the base branch. | |
default_merge_strategy | string | Specify the merge strategy to apply for the merge action. | |
merge_comment | string | Enter the comment to be displayed for the merge action. |
Request Body
{"item_merge_strategies"=>[{"uid"=>"global_field_uid", "type"=>"global_field", "merge_strategy"=>"merge_prefer_base"}, {"uid"=>"content_type_uid", "type"=>"content_type", "merge_strategy"=>"merge_prefer_base"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of the stack. | |
authtoken | string | Enter your authtoken. | |
authorization | string | For this call we recommend you to use management token. | |
Content-Type | string |