roy-n
(Roy N.)
1
I keep receiving an error on the API to message subscription:
my request body is:
{[“subscriberId” : “Subscriber_19”],[“subtopic” : “SubTopic_19”]}
The response error is:
{“code”:8002,“message”:“Could not parse request with message: Invalid Json”}
The body of the request is wrong. The format of the request shown in the documentation uses square brackets to indicate optional parameters:
So a proper request should look like this:
{
"subscriberId":"Subscriber_19",
"subtopic":"SubTopic_19"
}
Regards,
Mark
roy-n
(Roy N.)
3
Thanks for the info. That worked.
The documentation needs to be updated to state that the [ and ] are only to emphasize the optional values. Also, a curl example would be very helpful.
The documentation already says that the brackets are there to indicate that the elements are optional.
dzmitry
(dzmitry)
5
the removal of the object comes the following error: code “: 8002,” message “:” Could not parse request with message: Invalid json.
request method = DELETE, url = https: //api.backendless.com/v1/data/Payment/027D9670-5AAF-D211-FF16-98AE86034C00
Hi!
I think you have a mistake in request.
You can export correctly formed DELETE request from rest console.
dzmitry
(dzmitry)
7
Yes, there was an error. Already corrected. Thank you