By the way, I've just noticed that the "XML root element" is properly documented for POST /manage/v2/servers [1]. It should probably be the same way for POST /manage/v2/databases [2].
[1] https://docs.marklogic.com/REST/POST/manage/v2/servers [2] https://docs.marklogic.com/REST/POST/manage/v2/databases -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 6 May 2016 at 11:19, Florent Georges wrote: > Hi Jim, > > That's exactly what I was missing: "/properties" (I tried the same on the > database endpoint itself, which was on no help in this case...) > > Thanks! > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ > > > On 6 May 2016 at 10:47, James Fuller wrote: > >> as an example you can always view a pre-existing database via manage rest >> api >> >> >> http://localhost:8002/manage/v2/databases/Documents/properties?format=xml >> >> and emulate. >> >> Otherwise the schema >> >> manage-database-properties.xsd >> >> is the canonical definition and can validate your payloads. >> >> hth, J >> >> On Fri, May 6, 2016 at 10:31 AM, Florent Georges <[email protected]> >> wrote: >> >>> Hi, >>> >>> I try to create a DB with the Management API (POST /manage/v2/databases >>> <https://docs.marklogic.com/REST/POST/manage/v2/databases>). I can do >>> it with a JSON payload: >>> >>> { "database-name": "my-db", "forest": [ "my-db-001" ] } >>> >>> But I cannot find any example of the equivalent XML format. Neither >>> in the doc page above, nor in the Scripting Admin Tasks guide. All >>> examples use JSON. I guess all I need is the name of the root element >>> and the namespace to use, all element names are on the doc page. >>> >>> Any idea? >>> >>> Regards, >>> >>> -- >>> Florent Georges >>> http://fgeorges.org/ >>> http://h2oconsulting.be/ >>> >>> >>> _______________________________________________ >>> General mailing list >>> [email protected] >>> Manage your subscription at: >>> http://developer.marklogic.com/mailman/listinfo/general >>> >>> >> >> _______________________________________________ >> General mailing list >> [email protected] >> Manage your subscription at: >> http://developer.marklogic.com/mailman/listinfo/general >> >> > > >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
