Not logged in : Login |
Copies a resource or a collection to a new path. Collections are copied recursively.
from_path
The resource path.
to_path
The target path. FIXME: is this like in UNIX shells or is this the new full path of the resource?
overwrite
Flag to indicate if an already existing resource at to_path should be overwritten. If 0 then then call will fail in case that a resource exists.
permissions
The permissions of the newly created resource as detailed in Resource Permissions.
An error code stating the success of the command execution as detailed in ODS Error Result Codes.
Example:
$ curl -i "http://kingsley.idehen.net/ods/api/briefcase.copy?from_path=/DAV/home/demo/t1/&to_path=/DAV/home/demo/t2/&user_name=demo&password_hash=5863d9e4cbdf522eaa62e0747fceb1c5b249ba13"
HTTP/1.1 200 OK
Server: Virtuoso/06.02.3129 (Solaris) x86_64-pc-solaris2.10-64 VDB
Connection: Keep-Alive
Date: Tue, 10 May 2011 12:13:41 GMT
Accept-Ranges: bytes
Content-Type: text/xml; charset="UTF-8"
Content-Length: 57
1
Attributes | Values |
---|---|
type | |
Description |
An error code stating the success of the command execution as detailed in ODS Error Result Codes. $ curl -i "http://kingsley.idehen.net/ods/api/briefcase.copy?from_path=/DAV/home/demo/t1/&to_path=/DAV/home/demo/t2/&user_name=demo&password_hash=5863d9e4cbdf522eaa62e0747fceb1c5b249ba13" HTTP/1.1 200 OK Server: Virtuoso/06.02.3129 (Solaris) x86_64-pc-solaris2.10-64 VDB Connection: Keep-Alive Date: Tue, 10 May 2011 12:13:41 GMT Accept-Ranges: bytes Content-Type: text/xml; charset="UTF-8" Content-Length: 57 <result> <code>1</code> <message>Success</message> </result> |
name |
|
url | |
contentType |
|
httpMethod |
|
isWebServiceOf | |
oplwebservices:endPointURL | |
hasParameter | |
schema:shortDescription |
|
is target of |