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

KeyDatatypeRequiredDescription
base_branchstringThe base branch serves as the foundation where changes can be merged.
compare_branchstringEnter the branch from which you want to merge changes into the base branch.
default_merge_strategystringSpecify the merge strategy to apply for the merge action.
merge_commentstringEnter 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

KeyDatatypeRequiredDescription
api_keystringEnter the API key of the stack.
authtokenstringEnter your authtoken.
authorizationstringFor this call we recommend you to use management token.
Content-Typestring