-
Notifications
You must be signed in to change notification settings - Fork 0
Session Settings API
Read-write access to the Session settings during recording. Session settings contains primitive data about the session recording and results of certain steps, e.g., Questionary step. See Session Data - Session settings for details.
Names of the settings sections and keys are case sensitive
GET /api/session/recording/settings/{section}/{key}
Returns current value of the session recording setting saved with the key
in the section
, both parameters are set in the URI.
If no value exists for requested setting or no session is running, null
value is returned.
- Parameters:
-
section
(URI) - name of the settings section, e.g.,Session
. -
key
(URI) - name of the setting to read from the section, e.g.,StartedAt
fromSession
to return timestamp when the current recording started.
-
- Body: none.
- string value of the requested setting; otherwise null, if it does not exist or no session is running.
Read the timestamp of when the session recording started.
$ curl -X GET http://localhost:55555/api/session/recording/settings/Session/StartedAt
"2018-03-15T10:44:57.8399515+01:00"
Read the participant's name entered in the question Name
of the User
questionary (Welcome step in the sample session definition).
$ curl -X GET http://localhost:55555/api/session/recording/settings/User/Name
"John Locke"
POST /api/session/recording/settings/{section}/{key}
Sets the value for the session recording setting. If no such setting exists and there is a session recording running, the setting is created. Written values are saved in the session recording data.
- Parameters:
-
section
(URI) - name of the settings section, e.g.,Airlines
. -
key
(URI) - name of the setting to write to the section, e.g.,Selected
to store participant's preference.
-
- Body: string value of the setting.
200 OK HTTP Status code if the setting was saved, otherwise 400 Bad Request.
Write string value representing user's choice in an airline selection.
$ curl -X POST \
-H "Content-Type: application/json" \
http://localhost:55555/api/session/recording/settings/Airlines/Selected \
--data '"Oceanic Airlines"'
- Home
- Usage Examples
- User Manual
- API Reference
- Installation Manual
- Contributing
- Project Documentation