...
Create (or replace?) multiple binary resources in a single request
Query Parameters:
colourRedDELETE | List of nodes to removeExample:
Code Block |
---|
# creates the ds1 resource and removes the old-content resource
curl -X POST -F "ds1=@image.png" "http://localhost:8080/rest/path/to/some/resource/fcr:datastreams?delete=old-content" |
Response:
Code Block |
---|
Status: 201 Created |
Status:
Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 201 |
---|
|
...
Delete multiple resources in a single request
Query Parameters:
List of child resources to deleteExample:
Code Block |
---|
# removes both old-content and backup-content resources
curl -X DELETE "http://localhost:8080/rest/path/to/some/resource/fcr:datastreams?dsid=old-content&dsid=backup-content" |
Response:
Code Block |
---|
Status: 204 No Content |
Status:
Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 204 |
---|
|
No Content Delete multiple datastreams in a single requestExport / Import
Request URI: /path/to/some/resource
...