Versions Compared

Key

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

...

Status
subtletrue
colourRed
titleMOVE
 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
subtletrue
colourGreen
title201
 

Status
subtletrue
colourRed
title409
 Source path already doesn't exists

Status
subtletrue
colourRed
title412
 Destination path already exists

...

Status
subtletrue
colourRed
title409
 Source path already doesn't exists

Status
subtletrue
colourRed
title412
 Destination path already exists

...