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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Alter multiple property values within one PUT-Request

tlichtenberger-
1-Newbie

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

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!

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.

Top Tags