Content¶
- POST /(db)/(container)/(id)/@move¶
Move resource
Permission: guillotina.MoveContent
Context: guillotina.interfaces.content.IResource
http
POST /db/container/foobar/@move HTTP/1.1 Accept: application/json Authorization: Basic cm9vdDpyb290 Content-Type: application/json { "destination": "", "new_id": "foobar2" }
curl
curl -i -X POST http://nohost/db/container/foobar/@move -H "Accept: application/json" -H "Content-Type: application/json" --data-raw '{"destination": "", "new_id": "foobar2"}' --user root:root
httpie
echo '{ "destination": "", "new_id": "foobar2" }' | http POST http://nohost/db/container/foobar/@move Accept:application/json Content-Type:application/json -a root:root
response
HTTP/1.1 412 OK Content-Type: application/json { "reason": "preconditionFailed", "details": "", "type": "PreconditionFailed", "eid": "239475e773a54947bc4be6601ad3cc2b", "message": "Precondition Failed Could not find destination object on < Folder at /container/foobar by 126401386815552 >" }
- Status Codes:
200 OK -- Successfully moved resource
401 Unauthorized -- You are not authorized to perform the operation
404 Not Found -- The resource does not exist
- POST /(db)/(container)/(id)/@duplicate¶
-
http
POST /db/container/foobar2/@duplicate HTTP/1.1 Accept: application/json Authorization: Basic cm9vdDpyb290 Content-Type: application/json { "destination": "", "new_id": "foobar3" }
curl
curl -i -X POST http://nohost/db/container/foobar2/@duplicate -H "Accept: application/json" -H "Content-Type: application/json" --data-raw '{"destination": "", "new_id": "foobar3"}' --user root:root
httpie
echo '{ "destination": "", "new_id": "foobar3" }' | http POST http://nohost/db/container/foobar2/@duplicate Accept:application/json Content-Type:application/json -a root:root
response
HTTP/1.1 404 OK Content-Type: application/json { "reason": "object and/or route not found" }
- Status Codes:
401 Unauthorized -- You are not authorized to perform the operation
404 Not Found -- The resource does not exist
- GET /(db)/(container)/(id)/@addable-types¶
-
http
GET /db/container/foobar3/@addable-types HTTP/1.1 Accept: application/json Authorization: Basic cm9vdDpyb290
curl
curl -i -X GET http://nohost/db/container/foobar3/@addable-types -H "Accept: application/json" --user root:root
httpie
http http://nohost/db/container/foobar3/@addable-types Accept:application/json -a root:root
response
HTTP/1.1 404 OK Content-Type: application/json { "reason": "object and/or route not found" }
- Status Codes:
401 Unauthorized -- You are not authorized to perform the operation
404 Not Found -- The resource does not exist
- GET /(db)/(container)/(id)/@ids¶
-
http
GET /db/container/foobar3/@ids HTTP/1.1 Accept: application/json Authorization: Basic cm9vdDpyb290
curl
curl -i -X GET http://nohost/db/container/foobar3/@ids -H "Accept: application/json" --user root:root
httpie
http http://nohost/db/container/foobar3/@ids Accept:application/json -a root:root
response
HTTP/1.1 404 OK Content-Type: application/json { "reason": "object and/or route not found" }
- Status Codes:
401 Unauthorized -- You are not authorized to perform the operation
404 Not Found -- The resource does not exist
- GET /(db)/(container)/(id)/@items¶
-
http
GET /db/container/foobar3/@items HTTP/1.1 Accept: application/json Authorization: Basic cm9vdDpyb290
curl
curl -i -X GET http://nohost/db/container/foobar3/@items -H "Accept: application/json" --user root:root
httpie
http http://nohost/db/container/foobar3/@items Accept:application/json -a root:root
response
HTTP/1.1 404 OK Content-Type: application/json { "reason": "object and/or route not found" }
- Status Codes:
401 Unauthorized -- You are not authorized to perform the operation
404 Not Found -- The resource does not exist
- GET /(db)/(container)/(id)/@invalidate-cache¶
-
http
GET /db/container/foobar3/@invalidate-cache HTTP/1.1 Accept: application/json Authorization: Basic cm9vdDpyb290
curl
curl -i -X GET http://nohost/db/container/foobar3/@invalidate-cache -H "Accept: application/json" --user root:root
httpie
http http://nohost/db/container/foobar3/@invalidate-cache Accept:application/json -a root:root
response
HTTP/1.1 404 OK Content-Type: application/json { "reason": "object and/or route not found" }
- Status Codes:
401 Unauthorized -- You are not authorized to perform the operation
404 Not Found -- The resource does not exist