Core
Framework v2.x
2

RequestInput #

API request arguments are accessible here.

Common arguments are accessible at the root level: jwt, volatile, body, controller, action

Every other arguments are accessible under the args property. E.g: _id, index, collection, refresh, onExistingUser, foobar, etc.

action #

TypeDescriptionget / set
string
API action nameget

args #

TypeDescriptionget / set
JSONObject
KuzzleRequest arguments (except body)get

body #

TypeDescriptionget / set
JSONObject
KuzzleRequest bodyget

controller #

TypeDescriptionget / set
string
API controller nameget

headers #

TypeDescriptionget / set
JSONObject
KuzzleRequest headers (Http only)get

jwt #

TypeDescriptionget / set
string
Authentication tokenget

resource #

Deprecated since 2.11.0
TypeDescriptionget / set
JSONObject
Class containing Kuzzle specific argumentsget

Specific arguments #

nameTypeDescriptionget / set
resource._id
string
Document IDget
resource.index
string
Index nameget
resource.collection
string
Collection nameget

volatile #

TypeDescriptionget / set
string
API action nameget