Skip to main content
1-Visitor
February 13, 2017
Solved

Creating a Thing with a ValueStream using REST

  • February 13, 2017
  • 4 replies
  • 2755 views

Hi,

I tried to create a Thing that'd be associated to a ValueStream using REST API. I have associated the ValueStream to the template I'm using as a basis of the Thing. However, when the new Thing is created the "Value Stream" box stays empty.

Should a Thing inherit also the ValueStream of the template or do I have to separately assign it to the newly created Thing? If option #1, why is the box empty? If option #2, how do I do it (with REST)?

BR,

Risto

Best answer by Aanjan

Risto, the reason why you don't see a ValueStream on the Thing (eventhough the Template has it) is because you can set a new ValueStream there to override the current one. Keep in mind that entries won't be added unless you select the 'logged' flag on your property.

4 replies

Aanjan5-Regular MemberAnswer
5-Regular Member
February 13, 2017

Risto, the reason why you don't see a ValueStream on the Thing (eventhough the Template has it) is because you can set a new ValueStream there to override the current one. Keep in mind that entries won't be added unless you select the 'logged' flag on your property.

5-Regular Member
February 14, 2017

As Aanjan said; the ValueStream is inherited but does not show. You can run QueryPropertyHistory service to check the logged data.

1-Visitor
February 27, 2017

Thanks a lot.

How do I set the message as "Answered"? I only found the "Assumed Answered" option. Or does someone else do that (e.g. a moderator)?

EDIT:

OK – I think I found it now. I thought the "Correct Answer" star was some kind of an award.

BR,

Risto

5-Regular Member
February 27, 2017

Risto, I suppose there should be something like a following button on the response which you'd like to mark correct.