
      [DEPRECATED: use 
	      GET /manage/v3
	     and
      
	      POST /manage/v3
	     instead.]
    
| URL Parameters | |
|---|---|
| pkgname | The name of the new package to be created. | 
| format | 
      The format of the output.  This can be either xml or json.
     | 
	    
manage-admin role, or the 
    following privilege:
    
	  http://marklogic.com/xdmp/privileges/manage
	
     The following is an example of how to package the configuration of the 
     "Documents" database.
     curl -o Documents.xml --digest -u admin:admin \
     http://localhost:8002/manage/v2/databases/Documents?view=package
     ==> Download the configuration of the Documents database to the Documents.xml file. 
     curl -X POST --digest -u admin:admin -H "Content-type: application/xml" \
     -d @Documents.xml "http://localhost:8002/manage/v2/packages?pkgname=test-package" 
     ==> Insert the configuration file into a new package, named "test-package". 
     (: If you have a package ZIP file, you can use it to create a whole package
        as shown below. :)
 
     curl -X POST --digest -u admin:admin -H "Content-type: application/zip" \
     --data-binary @mypackage.zip \
     "http://localhost:8002/manage/v2/packages?pkgname=mypackage"
 
     ==> Insert the package saved in "mypackage.zip" into a new package, named "mypackage"
    
    
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.