This behavior is expected and is related to how Backendless handles Cloud Code function parameters.
When a function has only one parameter , the request body must contain a raw value , not a JSON object.
So instead of:
{ “userId”: “test” }
it should be:
“test”
In this case, "test" is passed directly as the userId argument.
However, when a function has multiple parameters , the request body must be a JSON object, for example:
{
“userId”: “test”,
“placeholder”: “placeholder”
}
I’ve attached screenshots showing where you can find the expected request format for Cloud Code calls.