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 name (null if not set). Can only be set onceget / set

args #

TypeDescriptionget / set
JSONObject
KuzzleRequest arguments (except body)get / set

body #

TypeDescriptionget / set
JSONObject
KuzzleRequest body (null if not set)get / set

controller #

TypeDescriptionget / set
string
API controller name (null if not set). Can only be set onceget / set

headers #

Deprecated since 2.16.3
TypeDescriptionget / set
JSONObject
KuzzleRequest headers (Http only)get / set

jwt #

TypeDescriptionget / set
string
Authentication token (null if not set)get / set

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

triggerEvents #

Available since 2.31.0
TypeDescriptionget / set
boolean
true if a request executed with the EmbeddedSDK triggers the API events (undefined otherwise)get / set

See Trigger events.

volatile #

TypeDescriptionget / set
JSONObject
Volatile data sent with the request (null if not set)get / set