Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of Versionproduct version 2019 Winter | component version 2019 Winter
Request MethodPOST
Response FormatJSON
Required Permissionaction write and read
>> Roles and Role Sets
Description


Excerpt
Moves the binary content file assigned to the selected version of the object specified by objectId to the target repository specified by repositoryId.


The corresponding binary content file is referenced in the contentStreams section of the object version via the properties repositoryId and contentStreamId. The binary content file could be referenced in multiple object versions and even in other objects. In case the corresponding binary content file is moved, the repositoryId and contentStreamId properties in the contentStreams section are updated in all those objects and object versions. No new object version will be created.

An audit entry will be created only for version specified by versionNr of the object specified by objectId in the request URL.

Request Example
POST api/dms/objects/00250915-fb6e-4165-bc05-93a02590f5de/versions/1/actions/move/contents/repositories/repo252
Result Example



The result is a JSON structure containing the updated metadata of the object identified by objectId.

Code Block
{
	"objects": [{
		"properties": {
			"system:traceId": {
				"value": "6ff928e56f8f8efe"
			},
			"system:objectTypeId": {
				"value": "document"
			},
			"system:versionNumber": {
				"value": 1
			},
			"Name": {
				"value": "Beat 2014-06.pdf_075.pdf"
			},
			"system:createdBy": {
				"value": "275c826c-6a61-4e89-9512-8d935a1631e5"
			},
			"system:creationDate": {
				"value": "2018-11-30T14:47:40.250Z"
			},
			"system:lastModificationDate": {
				"value": "2018-11-30T14:47:40.250Z"
			},
			"system:baseTypeId": {
				"value": "system:document"
			},
			"system:tenant": {
				"value": "default"
			},
			"system:lastModifiedBy": {
				"value": "275c826c-6a61-4e89-9512-8d935a1631e5"
			},
			"system:objectId": {
				"value": "00250915-fb6e-4165-bc05-93a02590f5de"
			}
		},
		"contentStreams": [{
			"contentStreamId": "DB886B37-FEEF-11E9-BCEC-3FAD551A2B8A",
			"archivePath": "default/DOCUMENT/B8/86/B/",
			"length": 86171,
			"mimeType": "application/pdf",
			"fileName": "Beat 2014-06.pdf_075.pdf",
			"digest": "2714F996A45F41439F625160167B4DE5BDE604F560FCABF8C242567CDFDC733A",
			"repositoryId": "repo252"
		}]
	}]
}


...