get body

This block is part of the http connection group and was last modified in core v10.4.28.

get body v10.4.28

Returns the provided body as object, if the request method is POST or PUT.

In pins 1
  • connection required
    httpconnection
Out pins 1
  • body
    object

get body reads the request body as an object from the current request. get fields then picks the fields the handler needs, and reply in JSON answers the call.

Studio canvas example for the get body block: reading the posted body.

Commonly used with

In production blueprints, this block is most often wired together with:

  • current request: feeds into this block. Retrieves a reference to the current HTTP Connection.
  • get fields: this block feeds into it. Gets the selected fields from the given object.
  • selected fields to mutations: this block feeds into it. Gets the selected fields from the given object and returns a fresh mutations from it.
  • log: this block feeds into it.
  • fields exist: this block feeds into it.
  • custom field: this block feeds into it. get the value of a custom field with a custom value block, or dynamic value.

Version history

Introduced in v10.4.28.


Back to http connection Return to the main group to view all sub-groups Back to http Return to the group to view all blocks within this group