Merge Drive Branch
curl --request POST \
--url https://api.zerodrive.dev/v1/branches/{branch_name}/merge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"drive_id": "primary",
"conflict_strategy": "fail",
"dry_run": false,
"message": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
drive_id: 'primary',
conflict_strategy: 'fail',
dry_run: false,
message: '<string>'
})
};
fetch('https://api.zerodrive.dev/v1/branches/{branch_name}/merge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/branches/{branch_name}/merge"
payload = {
"drive_id": "primary",
"conflict_strategy": "fail",
"dry_run": False,
"message": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Merge Drive Branch
Merge an open drive branch into main with 3-way semantic/line auto-merging and automatic File Version History snapshots.
POST
https://api.zerodrive.dev
/
v1
/
branches
/
{branch_name}
/
merge
Merge Drive Branch
curl --request POST \
--url https://api.zerodrive.dev/v1/branches/{branch_name}/merge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"drive_id": "primary",
"conflict_strategy": "fail",
"dry_run": false,
"message": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
drive_id: 'primary',
conflict_strategy: 'fail',
dry_run: false,
message: '<string>'
})
};
fetch('https://api.zerodrive.dev/v1/branches/{branch_name}/merge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/branches/{branch_name}/merge"
payload = {
"drive_id": "primary",
"conflict_strategy": "fail",
"dry_run": False,
"message": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
Body
application/json
Response
Merge result
The response is of type object.

