cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1525
Views
0
Helpful
1
Replies

malformed syntax

lynhnn
Cisco Employee
Cisco Employee

the request could not be understood by the server due to malformed syntax

 

My basic rest API was working until 4/29/2022 and now I got the above error. Please help me to fix my JSON (?). I changed the URL POST to 'https://webexapis.com/v1/messages'  from 'https://api.ciscospark.com/v1/messages' and the body is just like 

let body = {
toPersonEmail: email,
text: text,
markdown: markdown
}
but I still get the same error.
 
Thanks.
 
1 Reply 1

Rudrakshi
Cisco Employee
Cisco Employee

I believe you have reported the issue with Developer Support and it is now resolved as per the response from Gasper on the ticket:

The issue was because you are not including the contentType in the request headers. 

 



Best regards,
Rudrakshi Srivastava