CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployment pipeline · 3 of 15

Accept a carried-over pipeline

Decides the carried-over lines of one pipeline and turns it into a three-stage pipeline. Each line that needs a look is accepted, removed or edited; lines [] accepts the translation as it is, once no line needs a look. Your role needs the Edit Environment Deployment Pipeline permission.

POST/api/corestack/sites/{site}/deployments/carried-over/accept
  • Needs exec as well: An edit brings new text.

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Body

binding_idintegerRequired

At least 1.

linesarray of objectsRequired

A decision for each line that needs a look, named by its stage and index as the read answers them. An empty list accepts the translation as it is. Up to 600 items.

Fields of each item
actionstringRequired
acceptremoveedit
indexintegerRequired

At least 0.

stagestringRequired
builddatabasepost_deploy
textstring

With edit, the new line. Up to 4,096 characters.

revisionstring

The pipeline's revision from the read. Leave it out while that is null.

Returns

200 What was carried over, with the pipeline now accepted.

Fields of the 200 answer
attention_idinteger or null
auto_deployboolean
bindingsarray of objectsRequired

Each carried-over pipeline, with its translated lines and whether it is accepted.

Fields of each item
also_setarray of strings

Settings the translation made, in words.

binding_idintegerRequired
labelstring
linesarray of objectsRequired
Fields of each item
changestringRequired

What the translation did with the line, such as kept, rewritten or removed.

needs_reviewbooleanRequired
reasonstring

Why the line needs a look.

resultarray of objectsRequired

The lines it became, each with its stage.

sourceobjectRequired

The line's stage and index, which a decision names it by.

Fields
indexintegerRequired
stagestringRequired
textstringRequired

The command as it was carried over.

rehearsalobject or null
repositoryobject or null

The repository the pipeline deploys from.

revisionstring or null

Send this with the accept when it is not null.

statestringRequired

needs_review while a line needs a look, accepted once the pipeline has been accepted.

files_modeboolean
moved_atstring or null

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403forbiddenThe person is not allowed to do this.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
409not_availableThe tool does not apply to this object.
422invalidFix the field named in field; errors says why.
422line_credentialsThis line holds a credential. Move this value into a variable, then save again.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/deployments/carried-over/accept \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "binding_id": 2210,
    "lines": [
      {
        "action": "remove",
        "index": 1,
        "stage": "build"
      }
    ]
  }'
{
  "attention_id": "deploy_pipeline_carried:1042",
  "auto_deploy": false,
  "bindings": [
    {
      "also_set": [
        "Maintenance page: off"
      ],
      "binding_id": 2210,
      "label": "Default pipeline",
      "lines": [
        {
          "change": "kept",
          "needs_review": false,
          "result": [
            {
              "stage": "build",
              "text": "composer install --no-dev"
            }
          ],
          "source": {
            "index": 0,
            "stage": "build"
          },
          "text": "composer install --no-dev"
        },
        {
          "change": "removed",
          "needs_review": false,
          "reason": "Copies from the old server need a look",
          "result": [],
          "source": {
            "index": 1,
            "stage": "build"
          },
          "text": "scp [email protected]:/var/www/media.tgz ."
        }
      ],
      "rehearsal": null,
      "repository": {
        "branch": "main",
        "provider": "gitlab",
        "repo": "northwind-digital/harbourandfinch"
      },
      "revision": "e64e702d17d85dd8",
      "state": "accepted"
    }
  ],
  "files_mode": false,
  "moved_at": null
}
Try it

Try it is off for this endpointIt overwrites data that cannot be brought back. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT