labels
- Sessions API
The labels
methods of the sessions API allow for better organization of sessions.
Reads all labels of a session.
GET /api/sessions/<token>/labels
"Array<String>"
Request:
GET /api/sessions/afd4ecb0-c339-11e9-b66c-eca76c2bea9c/labels
Response:
["label1", "label2", "label3"]
Update all labels of a session.
PUT /api/sessions/<token>/labels
"Array<String>"
The array of labels provided in the request payload will replace all existing labels of the session.
Request:
GET /api/sessions/afd4ecb0-c339-11e9-b66c-eca76c2bea9c/labels
Response:
["label1", "label2", "label3"]
Request:
PUT /api/sessions/afd4ecb0-c339-11e9-b66c-eca76c2bea9c/labels
["label4", "label5"]
Request:
GET /api/sessions/afd4ecb0-c339-11e9-b66c-eca76c2bea9c/labels
Response:
["label4", "label5"]