Skip to content

Instantly share code, notes, and snippets.

@emodric
Created September 12, 2012 12:22
Show Gist options
  • Save emodric/3706271 to your computer and use it in GitHub Desktop.
Save emodric/3706271 to your computer and use it in GitHub Desktop.
create location
echo '<?xml version="1.0" encoding="UTF-8"?>
<LocationCreate media-type="application/vnd.ez.api.LocationCreate+xml">
<ParentLocation href="/content/locations/1/5" media-type="application/vnd.ez.api.Location+xml"/>
<priority>0</priority>
<hidden>false</hidden>
<sortField>PATH</sortField>
<sortOrder>ASC</sortOrder>
</LocationCreate>' | \
http -v POST localhost:8042/content/objects/58/locations \
'X-Test-User:14' \
'Accept:application/vnd.ez.api.Location+xml' \
'Content-Type:application/vnd.ez.api.LocationCreate+xml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment