Skip to main content
POST
/
projects
/
{project_id}
/
branches
/
{name}
/
compare
cURL
curl "https://api.phrase.com/v2/projects/:project_id/branches/:name/compare" \
  -u USERNAME_OR_ACCESS_TOKEN \
  -X POST \
  -d '{"direction":"merge"}' \
  -H 'Content-Type: application/json'
{}

Authorizations

Authorization
string
header
required

Enter your token in the format token TOKEN

Headers

X-PhraseApp-OTP
string

Two-Factor-Authentication token (optional)

Path Parameters

project_id
string
required

Project ID

name
string
required

name

Body

application/json
direction
string
default:merge

direction of comparison, possible values are sync or merge (only for v2 branches)

Example:

"merge"

Response

Accepted