This documentation is for WSO2 Governance Registry 5.3.0. View documentation for the latest release.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


For details on security (the authorization header) and the URI syntax (port, context, etc.), see Registry REST API.


Get the content of a resource


Request URI/artifact{ complete path of the resource to be added }
HTTP Request Header

Authorization: Basic { base64encoded(username:password) }

Media-Type: {Media type of the resource}

Request Content Type{ MIME type of the resource }
PayloadContent of the resource
ResponseHTTP 204 No content.
DescriptionAdd the content of the resource sent via payload to the requested path at the URI.
Sample request
Code Block
curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Media-Type: application/xml" -H "Content-Type: application/xml" -H "Cache-Control: no-cache" -H "Postman-Token: fa3c1088-48d9-1330-c398-bac27182ddc9" -d '<metadata xmlns="">
    	<description>Adding the WSDL file  Amazon Web Services.wsdl</description>
    	<wsdlURL>/_system/governance/trunk/wsdls/com/amazon/soap/1.0.0/Amazon Web Services.wsdl</wsdlURL>
</metadata>' "https://localhost:9443/resource/1.0.0/artifact/_system/governance/trunk/sample.xml" -i -k