Restore an Artifact or undo the merge that produced it

POST
/v1/scopes/{scope_id}/artifacts/{family}/{artifact_id}/restorations

restore reactivates the Artifact, optionally at an earlier content revision, and undoes the merges that froze it. undo_merge restores a merge result's inputs and retires the result. Each runs as one group. Available for every Family registered with the shared merge service.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer credential resolved to an opaque authenticated Principal by the Server deployment.

In: header

Path Parameters

scope_id*string
Match.*\S.*
Length1 <= length <= 256
family*string
Match^[a-z][a-z0-9-]*$
Length1 <= length <= 128
artifact_id*string
Match^[\x21-\x7E]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/scopes/string/artifacts/string/string/restorations" \  -H "Content-Type: application/json" \  -d '{}'
{  "changed": true,  "restored": [    {      "family": "string",      "artifact_id": "string",      "revision": 1    }  ],  "retired": [    {      "family": "string",      "artifact_id": "string",      "revision": 1    }  ],  "undo_merge_results": [    "string"  ]}