Skip to main content
1-Visitor
May 3, 2017
Solved

Alter multiple property values within one PUT-Request

  • May 3, 2017
  • 6 replies
  • 3162 views

Hey there,

I tried to send one http-put-request which alters the value of multiple properties.

The request looks like following:

But as you can see in the Picture above, this action is not allowed. Maybe I have to reference to the property in the JSON-Body?

Any suggestions?

Thanks in advance,

Theresa

Best answer by AnnaAn

Hi Theresa,

Yes almost the same, but please seperate each property with a comma. For example:

{"Str1":"hello123",

"Str2":"again111"

}

And again, use this url instead:

http://localhost/Thingworx/Things/testAC/Properties/*

6 replies

14-Alexandrite
May 3, 2017

Hi Theresa Lichtenberger​

You could try to request url with :http://localhost:8080/Thingworx/Things/HJ/Properties/*

Hope this helps,

Br,

Anna

1-Visitor
May 3, 2017

Hi Anna An​

If I use your request URL, will the body (see in the Picture) still be the same?

Theresa

AnnaAn14-AlexandriteAnswer
14-Alexandrite
May 3, 2017

Hi Theresa,

Yes almost the same, but please seperate each property with a comma. For example:

{"Str1":"hello123",

"Str2":"again111"

}

And again, use this url instead:

http://localhost/Thingworx/Things/testAC/Properties/*