Skip to main content
PUT
Set an application's setup pull request auto-merge setting

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

application_id
string
required

Body

application/json
enabled
boolean | null
required

true or false is the application's own answer; null follows the organisation.

Response

Successful Response

An application's setup pull request auto-merge setting: its own answer, its organisation's, and the effective one the merge acts on.

enabled
boolean | null
required

The application's own answer; null when it follows its organisation. A stored value that is not a boolean reads as false.

organisation_enabled
boolean
required

The organisation's auto_merge_setup_pull_requests.

effective
boolean
required

Whether Ankra may merge this application's setup pull requests: on only when enabled is true, or when enabled is null and organisation_enabled is true.