Table of Contents
/Storage/SavePrivateXml
Allows the client to save private information on the server using XML.
JSON
- Request
{ "xml":Required(Xml(PXml)) }- Response (if successful)
{ "created": Required(DateTime(PCreated)), "updated": Required(DateTime(PUpdated)) }
XML
- Request
<SavePrivateXml xmlns="https://waher.se/Schema/BrokerAgent.xsd"> <[Required(Xml(PXml))]> </SavePrivateXml>- Response (if successful)
<Stored xmlns="https://waher.se/Schema/BrokerAgent.xsd" created=(Required(DateTime(PCreated))) updated=(Required(DateTime(PUpdated)))/>
Input Parameters
| Parameter | Description |
|---|---|
PXml |
XML of information to store on the server, for the account. |
Note: Only one record per namespace and local name (i.e. fully qualified name) is permitted, for each account. Saving private XML overwrites any previous contents for that fully qualified name.
Response Parameters
| Parameter | Description |
|---|---|
PCreated |
When the information record was first created. |
PUpdated |
When the information record was last updated. |
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Storage.SavePrivateXml(Xml);