Copy domain current content to execution environment

patch/domains/{domainId}/currentContents
Internal-Use Only

The copy is done using the JSON Patch operation. See https://tools.ietf.org/html/rfc6902 for more information about the JSON Patch.

The "copy" JSON Patch operation consists of the op, from, and path members. The member names are to be in lowercase only. The op value is "copy". The from value is /@current. The path value is /@current/environments/cas or /@current/environments/mas. If the domain has a non-expired current content, its representation is returned.

Request Samples

1

Response Samples

1{
2 "id": "3",
3 "domainId": "f8600b44-092c-4095-a560-f4d2b90f1148",
4 "contentId": "ea412e18-02f2-4502-b8c6-4a4f8cad5db4",
5 "versionId": "ea412e18-02f2-4502-b8c6-4a4f8cad5db4",
6 "commencedTimeStamp": "2022-02-25T13:41:37.894Z",
7 "status": "production",
8 "links": []
9}

Path Parameters

NameTypeRequiredDescription
domainId
string
true

The identifier of a reference data domain.

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The ETag value that was returned from a GET of the current contents. If the ETag value does not match the resource ETag value, the patch fails.

Request Body

A JSON document of the JSON Patch operations.

The properties of an execution environment patch operation.

NameTypeRequiredDescription
op
string
false

The operation to carry out.

from
string
false

The source of the copy.

path
string
false

The target of the copy.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid. The domain does not have current content.Schema
404Not FoundNo resource exists at the requested path. Current content for the domain was not found.Schema
412Precondition FailedThe ETag value used in the If-Match header did not match the resource's ETag value. The resource has changed.Schema
422Unprocessable EntityA request in the patch document asks for invalid operation.Schema
428Precondition RequiredThe request headers did not include an `If-Match` precondition.Schema