Skip to main content
GET
Compare a tool between environments
The same as environments.promote with dry_run. An API key limited to environments compares only into an environment it may be used in, from any of your team’s environments.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tool_id
string
required

a tool ID: tool_ and 32 lowercase hex digits

Example:

"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Query Parameters

from
string
required

a string matching the pattern ^a-z [blocked]?$

to
string
required

a string matching the pattern ^a-z [blocked]?$

mode
enum<string>

replace: the target serves the source's version. merge: the source's changes go onto the target's newest version

Available options:
replace,
merge

Response

The preview

published: the target serves a new version. reset: it follows production again. unchanged: it already served it. preview: what a dry_run found

status
enum<string>
required
Available options:
published
tool_id
string
required

a tool ID: tool_ and 32 lowercase hex digits

Example:

"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

environment
string
required
version
number
required
promoted_from
object
required
mode
enum<string>
required

replace: the target serves the source's version. merge: the source's changes go onto the target's newest version

Available options:
replace,
merge
warnings_accepted
enum<string>[]
required
Available options:
inputs_change,
public_tool_fork,
target_changed,
target_ahead,
no_login_in_environment,
unchecked_code,
merge_conflicts
lands_as
enum<string>
Available options:
public_update,
private_copy,
new_tool
merged
object