What is the purpose of "$" character in cumulocity SmartREST template

Hello.

I would like to know the purpose of “$” when we are using SmartRest tamplate, for example:
$.c8y_IsDevice, what does this mean?

Thank you.

Hi Ruben,

the $ symbol is briefly described in the documentation in the Templates section. In summary the $ symbol serves as a variable to access the base object within smartREST templates. By using JPath expression you can use the base object to access certain properties of it. For example to read the type of an object you would use $.type.

Best regards
Christian

Thank you very much

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.