Skip to main content
PATCH
Revise an application's proposed setup contract

Authorizations

Authorization
string
header
required

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

Path Parameters

application_id
string
required

Body

application/json

Named deploy-option defaults to change. The object maps option name to the new default value, which is the shape the deploy contract itself stores. Every value is a string: the contract stores every option default as text.

options
Options · object
required

Response

Successful Response

The answer to a revision request. Every answered request is a 200 carrying outcome; a refusal is a domain answer whose reasons the user has to read, not a malformed request. changes and refusals are always arrays.

outcome
enum<string>
required

What the revision request did. Clients switch on this: reading the changes list alone would render a refusal exactly like a request that needed no change. "applied" - the contract was rewritten, committed to the setup branch and reprojected onto the stored parameters. "already_matching" - every named default already held the requested value, so nothing was committed. "refused" - the proposal was left exactly as it was and refusals says why. "applied_contract_not_stored" - the revised descriptor was committed but the stored contract could not be reprojected from it, so the repository and the deploy form now describe different options.

Available options:
applied,
already_matching,
refused,
applied_contract_not_stored
changes
Application Setup Change · object[]
required
already_matching
string[]
required
refusals
Application Setup Refusal · object[]
required
commit_sha
string
pull_request_url
string
setup_branch
string
contract_store_failure
string