curl --request PATCH \
--url http://localhost:8787/api/v1/rooms/{roomCode}/settings \
--header 'Content-Type: application/json' \
--data '{
"type": "numQuestions",
"value": 123
}'
{
"code": "<string>",
"id": "<string>",
"hostId": "<string>",
"maxPlayers": 123,
"numQuestions": 123,
"createdAt": "<string>",
"endedAt": "<string>",
"timeLimit": 123
}
Update room settings by room code
curl --request PATCH \
--url http://localhost:8787/api/v1/rooms/{roomCode}/settings \
--header 'Content-Type: application/json' \
--data '{
"type": "numQuestions",
"value": 123
}'
{
"code": "<string>",
"id": "<string>",
"hostId": "<string>",
"maxPlayers": 123,
"numQuestions": 123,
"createdAt": "<string>",
"endedAt": "<string>",
"timeLimit": 123
}
4
Room settings updated
The response is of type object
.