Often, when teaching younger children or performing a presentation, it's useful to have the option to control what the other person can or can't do. That's where Leading Mode comes in. Users who are identified as Leaders will be able to switch Leading Mode on, which forces all non-leader participants to follow the leader's view as they move around a space.
While it's technically possible to have multiple leaders in a space, doing so will often lead to undesired behaviour.
By tweaking the call we made to the launch endpoint in the previous example, we can specify Alice as a leader
{
"request": {
"method": "POST",
"url": "https://api.thelessonspace.com/v2/spaces/launch/",
"headers": [
{
"name": "Authorization",
"value": "Organisation __API_KEY__"
}
],
"postData": {
"mimeType": "application/json",
"text" : "{\"id\": \"space 1\", \"user\": {\"name\": \"Alice\", \"leader\": true}}"
}
},
"response": {
"status": 200,
"httpVersion": "HTTP/2",
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"content": {
"text": "{\"client_url\": \"https://go.room.sh/...\", \"api_base\": \"https://ew2-aa.room.sh/v1/room/uuid\", \"secret\": \"uuid\"}",
"mimeType": "application/json"
}
}
}
Now, Alice will have a new option available in the space: