Created
          September 12, 2012 12:22 
        
      - 
      
- 
        Save emodric/3706271 to your computer and use it in GitHub Desktop. 
    create location
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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