Forum Discussion
VikasB
Boss
First thing I noticed, you need to remove body keyword from "http.client.request.body". It should be like
<#assign http_client_request = http.client.request("https", "myurl", "/api/2.0/users/366").body("{'data':{'type': 'user','email_excluded':false}}", "application/json").put() />
k_auerbach
7 years agoHelper
Hi VikasB,
I tried it, but got the same error.
- VikasB7 years agoBoss
k_auerbach
Make sure you are using it in either endpoint or page initialization script. It would not work in the component.http.client Access and manipulate the HTTP client request endpoints
page initialization
Related Content
- 9 years ago
- 11 years ago
- 12 years ago