Table of Contents
/Tokens/AddXmlNote
Adds an XML note to a token.
JSON
- Request
- { "tokenId":Required(Str(PTokenId)), "note":Required(Str(PNote)), "personal":Required(Boolean(PPersonal)) }
- Response (if successful)
- { "Note":Required(PNote) }
XML
- Request
- <AddXmlNote xmlns="https://waher.se/Schema/BrokerAgent.xsd" tokenId=(Required(Str(PTokenId))) note=(Required(Str(PNote))) personal=(Required(Boolean(PPersonal)))/>
- Response (if successful)
- <AddXmlNote xmlns="https://waher.se/Schema/BrokerAgent.xsd" tokenId=(Required(Str(PTokenId))) personal=(Required(Boolean(PPersonal)))> <[Required(Xml(PNote))]> </AddXmlNote>
Input Parameters
| Parameter | Description | 
|---|---|
| PTokenId | ID of token. | 
| PNote | XML note to add. | 
| PPersonal | If the note is personal or note. Personal notes are deleted when the token changes owner. | 
Response Parameters
| Parameter | Description | 
|---|---|
| PNote | Generated note added to the token. | 
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Tokens.AddXmlNote(TokenId,Note,Personal);