Merge exact current Artifacts into a new Artifact

POST
/v1/scopes/{scope_id}/artifacts/{family}/merges

Freezes every input into a new result Artifact in one transaction. Available for every Family registered with the shared merge service, including plugin families; other families return 422. The caller needs write access to each input.

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

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/merges" \  -H "Content-Type: application/json" \  -d '{    "inputs": [      {        "artifact_id": "string",        "revision": 1,        "state_version": 0      },      {        "artifact_id": "string",        "revision": 1,        "state_version": 0      }    ],    "content": {}  }'
{  "changed": true,  "records": [    {      "artifact": {        "family": "string",        "artifact_id": "string",        "revision": 1      },      "lifecycle_state": "active",      "state_version": 0,      "merged_into_id": "string"    }  ]}