Copy or move

You can copy or move single or multiple content at once. With copy the system creates a new content, a copy of the chosen item(s) in a chosen target container and keeps the original one(s) as well. Using move lets you move a content(s) to another container.

 

Copy a single content

The following example will copy the content that the action is called on to the given target container:

Copy
POST https://example.com/OData.svc/('Root')/CopyBatch

models=[{
  "targetPath":"/Root/Content/Cars/Backup",
  "paths":[
    "/Root/Content/Cars/AAKE452"
  ]
}]

Copy multiple content

The next examples shows how to copy multiple documents into another folder:

Copy
POST https://example.com/OData.svc/('Root')/CopyBatch

models=[{
  "targetPath":"/Root/Content/Cars/Backup",
  "paths":[
    "/Root/Content/Cars/AAKE452",
    "/Root/Content/Cars/KLT1159"
  ]
}]

Move a single content

The following example shows how to move a content to a given target folder:

Copy
POST https://example.com/OData.svc/('Root')/MoveBatch

models=[{
  "targetPath":"/Root/Content/Cars/out-of-order",
  "paths":[
    "/Root/Content/Cars/AAKE452"
  ]
}]

Move multiple content

Next example shows how to move multiple documents into another target folder:

Copy
POST https://example.com/OData.svc/('Root')/MoveBatch

models=[{
  "targetPath":"/Root/Content/Cars/out-of-order",
  "paths":[
    "/Root/Content/Cars/AAKE452",
    "/Root/Content/Cars/KLT1159"
  ]
}]