I am using the integrator.io State REST API to populate state information in an integration. I have an Import that calls the below API Endpoint with the state data.
PUT /v1/integrations//state/myState HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token
I receive a "text" type response with the word "OK" from the above API call. Since the integrator does not support response formats other than application/json, the above Import always logs the below error.
An invalid JSON is sent in the response.body, error: please ensure that you have wrapped all JSON property names in quotes. details: Unexpected token O in JSON at position 0
What is the proper solution for the above issue? How can I get rid of the error message? I know that I can use a postResponse hook function and silently ignore the error. But I feel the platform should support textual responses since these are standard response patterns.