...
Status |
---|
subtle | true |
---|
colour | Red |
---|
title | MOVE |
---|
|
Move a resource (and its subtree) to a new location
Example (1):
Code Block |
---|
curl -X MOVE -H "Destination: http://localhost:8080/rest/new/path/to/node" "http://localhost:8080/rest/path/to/node" |
...
Code Block |
---|
Status: 201 Created
Headers:
Location: http://localhost:8080/rest/new/path/to/node |
Example (2):
Code Block |
---|
curl -X MOVE -H "Destination: http://duraspace.org/some/path" "http://localhost:8080/rest/path/to/node" |
Response:
Code Block |
---|
Status: 502 Bad Gateway |
Status:
Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 201 |
---|
|
Status |
---|
subtle | true |
---|
colour | Red |
---|
title | 409 |
---|
|
Source path
already doesn't exists
Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 412 |
---|
|
Destination path already exists
...
Status |
---|
subtle | true |
---|
colour | Red |
---|
title | 409 |
---|
|
Source path
already doesn't exists
Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 412 |
---|
|
Destination path already exists
...