Tony Constantine

HCP XML Curl query

Discussion created by Tony Constantine on Mar 20, 2015
Latest reply on Oct 11, 2017 by Yury Kats

Taken this example XML from the HCP Metadata Query API Reference - page 93


Retrieving all operation records for all existing and deleted objects in a directory


Request body in the XML file named AllSales.xml














I've just changed the name to a namespace to one that exists in our tennant but getting  Bad Request Error


curl -k -i -H "Authorization: HCP xxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/xml" -H "Accept: application/json" -d @shared1.xml ""


HTTP/1.1 400 Bad Request

Date: Fri, 20 Mar 2015 12:29:07 GMT

Server: HCP V7.1.0.10

X-HCP-ErrorMessage: No namespace with name shared1 found

Content-Length: 0



Any ideas?