CorefinityCorefinityDocs
Open the Control PanelControl Panel
Enterprise copies · 5 of 5

Copy the environment again

Copies the environment into the same site again, once this copy's run has ended: the answer is a new copy whose copy_of is this one. Only the site's latest copy can be re-synced, whether it is resting, finished or failed; the site and the environment are checked again as a start checks them, and confirm_target_site is asked again because everything the site holds is replaced.

POST/api/enterprise-copies/{copy}/resync

Path parameters

copyintegerRequired

The id of a copy, as a start or a re-sync answers it. Digits only; 0 or an id above 2147483647 is refused 422.

Body

confirm_target_sitestringRequired

The name of the copy's site, as the preview answers it in confirm.

Returns

202 A new copy started. Follow it at poll. Poll the operation until it finishes.

Fields of the 202 answer
copyobjectRequired
Fields
copiedobject or any or nullRequired

What the run copied. Null until it has ended.

copied_atstring or nullRequired

When the copy's run last ended. A copy's times are sent in UTC with a +00:00 offset, not Z. Format: date-time.

copy_ofinteger or nullRequired

The copy this one followed, when it was made by a re-sync. At least 1.

created_atstring or nullRequired

When the copy was started. Format: date-time.

database_bytesinteger or nullRequired

The size of the environment's database, measured when the copy started.

errorstring or nullRequired

For a failed copy, what happened and what to do next.

failure_reasonstring or nullRequired

For a failed copy, the stable code of why.

files_bytesinteger or nullRequired

The size of the environment's files, measured when the copy started.

finishablebooleanRequired

Whether the copy itself is ready to be finished. The site's own checks are made when you finish it.

finished_atstring or nullRequired

When the copy was finished. Format: date-time.

idintegerRequired

At least 1.

operationobject or any or nullRequired

The copy's run, as an operation of the site.

phasestringRequired

presync until the copy ends, then done (finished, or followed by a newer copy) or failed.

source_environment_idintegerRequired

At least 1.

statestringRequired

running while the copy runs, waiting once its run has ended, failed when it failed.

stepstring or nullRequired

Where the copy is: guard, transfer, fixups and check while it runs, copied once its run has ended, superseded when a re-sync followed it, finished when it was finished.

superseded_byinteger or nullRequired

The copy a re-sync made after this one. At least 1.

target_cluster_idintegerRequired

At least 1.

target_site_idintegerRequired

At least 1.

unactivated_atstring or nullRequired

When the site was last checked to be a copy and not a live site. Format: date-time.

pollstringRequired

The path to read the copy at.

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.
403two_factor_requiredTurn on two-factor on your account, then send again.
404noneCheck the id. You see only what your account can reach.
409copy_not_latestA newer copy of the site exists. Re-sync that one.
409copy_runningThe copy is still running. Wait for its run to end.
422confirm_mismatchSend the confirmation exactly as the field named in field asks for it.
422invalidFix the field named in field; errors says why.
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/enterprise-copies/6201/resync \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm_target_site": "harbourandfinch-example-com-trial"
  }'
{
  "copy": {
    "copied": null,
    "copied_at": null,
    "copy_of": 6201,
    "created_at": "2026-11-03T14:30:00+00:00",
    "database_bytes": 10737418240,
    "error": null,
    "failure_reason": null,
    "files_bytes": 32212254720,
    "finishable": false,
    "finished_at": null,
    "id": 6202,
    "operation": {
      "id": 5143,
      "status": "executing",
      "step": "protected"
    },
    "phase": "presync",
    "source_environment_id": 1311,
    "state": "running",
    "step": "guard",
    "superseded_by": null,
    "target_cluster_id": 1017,
    "target_site_id": 1081,
    "unactivated_at": null
  },
  "poll": "/api/enterprise-copies/6202"
}
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