cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Alter multiple property values within one PUT-Request

tlichtenberger-
1-Visitor

Alter multiple property values within one PUT-Request

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

ACCEPTED SOLUTION

Accepted Solutions
AnnaAn
14-Alexandrite
(To:tlichtenberger-)

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/*

View solution in original post

6 REPLIES 6
AnnaAn
14-Alexandrite
(To:tlichtenberger-)

Hi Theresa Lichtenberger

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

Hope this helps,

Br,

Anna

Hi Anna An

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

Theresa

AnnaAn
14-Alexandrite
(To:tlichtenberger-)

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/*

Thank you so much Anna An​ , it worked with the comma!

AnnaAn
14-Alexandrite
(To:tlichtenberger-)

Hi Theresa,

You are welcome. I am glad it worked finally.

Thanks,

Br,

Anna

Hi Anna An

I have already tried the URL: http://localhost/Thingworx/Things/testAC/Properties/*,

and the Response is 200 OK, but the property values still do not get updated.

Announcements


Top Tags