Copy domain current content to execution environment
patch/domains/{domainId}/currentContents
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
.
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}
Name | Type | Required | Description |
---|---|---|---|
domainId | string | true | The identifier of a reference data domain. |
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. The domain does not have current content. | Schema | |
404 | Not Found | No resource exists at the requested path. Current content for the domain was not found. | Schema | |
412 | Precondition Failed | The ETag value used in the If-Match header did not match the resource's ETag value. The resource has changed. | Schema | |
422 | Unprocessable Entity | A request in the patch document asks for invalid operation. | Schema | |
428 | Precondition Required | The request headers did not include an `If-Match` precondition. | Schema |