Hello, I have been trying to update the values held in a RAPID array of type “pos” via POST request but so far I am not having any luck. I am able to do a GET on the array and receive a response but I guess I must not have the correct syntax for POST.
I am trying to post to the following url via Postman:
Hello,
The 415 response is sent when the content-type header is wrong or missing. Information on headers can be found under Introduction–>Mime type in the web service manuals which can be found in this link:
Thanks for the response. You were right my content type was set to “application/x-www-form-urlencoded” and I think I needed to set it to “application/x-www-form-urlencoded;v=2.0”, I also noticed that I was sending my value as form data rather than x-www-form-urlencoded. So I am no longer getting a 415 response.
Unfortunately I am now getting 400 Bad Request and a different ret code. Here is the lookup response:
SYS_CTRL_E_RAPID_SEMANTIC_ERROR -1073442802 Error Operation not allowed due to semantic error(s).
Any ideas what the semantic error could be here?
Edit: It seems to be due to the fact that my array size in RAPID was set to 64 but I was only posting 4 points, when I reduced the array size to 4 the request worked fine, so I guess if I want to keep the max size as 64 I will need to pad out my post value with empty points.
Thanks for the help, you can close the thread if you like.