MergeResolution
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/merge_resolutions |
create |
Resolved file bytes, or resolved=false when the conflict is left intact |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.MergeResolution(nil).Create(map[string]any{"base": "example", "ours": "example", "theirs": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:MergeResolution():create({ base = "example", ours = "example", theirs = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->MergeResolution()->create(["base" => "example", "ours" => "example", "theirs" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.MergeResolution().create({ "base": "example", "ours": "example", "theirs": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.MergeResolution.create({ "base" => "example", "ours" => "example", "theirs" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.MergeResolution().create({ base: "example", ours: "example", theirs: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
action |
string |
Yes | Action |
base |
string |
Yes | Common ancestor file contents |
content |
one,string,null |
No | Content |
context |
object |
No | Optional surrounding files keyed by path |
duration_ms |
integer |
Yes | Duration Ms |
fallback |
boolean |
Yes | Fallback |
model |
string |
No | Model |
ours |
string |
Yes | Current / left file contents |
path |
string |
No | Repository-relative path of the conflicted file |
resolved |
boolean |
Yes | Resolved |
theirs |
string |
Yes | Incoming / right file contents |
create
POST /api/v1/merge_resolutions
Operation ID: createMergeResolution.
Authentication: bearer token (bearerAuth).
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
base |
string |
Yes | Common ancestor file contents |
context |
object |
No | Optional surrounding files keyed by path |
ours |
string |
Yes | Current / left file contents |
path |
string |
No | Repository-relative path of the conflicted file |
theirs |
string |
Yes | Incoming / right file contents |
Responses
200: Resolved file bytes, or resolved=false when the conflict is left intact
application/json
| Property | Type | Required | Description |
|---|---|---|---|
action |
string |
Yes | |
content |
string |
No | |
duration_ms |
integer |
Yes | |
fallback |
boolean |
Yes | |
model |
string |
No | |
resolved |
boolean |
Yes |