Devices & room
Identify a shape
POST
/api/room/identifyOpen. Open to everyone who can reach Tempolight.
Lights one shape for a few seconds.
Request body application/json
shapeintegerrequiredThe shape's index in the room.
Responses
200OKapplication/json
oktruerequiredRequest
curl -X POST 'http://localhost:8080/api/room/identify' \
-H 'content-type: application/json' \
-d '{
"shape": 0
}'const res = await fetch("http://localhost:8080/api/room/identify", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"shape": 0
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"http://localhost:8080/api/room/identify",
json={
"shape": 0
},
)
print(res.json())Response
{
"ok": true
}