Get Request Body in Codeless Service API

I have a codeless POST API sevice and I would like to access the body from the request, I would assume it has to be in the context block, but I cannot find it there - Context Blocks - Backendless Codeless Development Guide.

How can I do it?
Thank you!


If you declared an argument for your API service, the body will be in that argument.


1 Like

Okay, I’ve created an argument with a random name and it seems to work. Honestly, it’s super unclear and not straight forward at all, maybe you can add it to some docs.

Thanks a lot for your help,


Data you send to a method is going to be in the body. The only way your method can get data is through method arguments. When you declare an argument, it is mapped to the body. I think it is quite logical, don’t you?

But body is not an argument and has no name, so that is the confusing part. I would expect to have “Request Body” context variable next to Request Headers and Request Context for POST requests, but maybe it is just me.