Logo
API_DOC API Documentation

Create/update role

POST {{HOST}}/v2/templates/<TEMPLATE_ID>/roles/<ROLE_NAME>

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Authorization
null




RESPONSES

status





Curl
curl -X POST 'https://api.100ms.live/v2/templates/<TEMPLATE_ID>/roles/<ROLE_NAME>' -H 'Authorization: ' -d '{"name":"host2","publishParams":{"allowed":["audio","video","screen"],"audio":{"bitRate":32,"codec":"opus"},"video":{"bitRate":310,"codec":"vp8","frameRate":30,"width":480,"height":360},"screen":{"codec":"vp8","frameRate":10,"width":1920,"height":1080}},"subscribeParams":{"subscribeToRoles":["guest","host"],"maxSubsBitRate":3200,"subscribeDegradation":{"packetLossThreshold":25,"degradeGracePeriodSeconds":1,"recoverGracePeriodSeconds":4}},"permissions":{"endRoom":true,"removeOthers":true,"mute":true,"unmute":true,"changeRole":true,"sendRoomState":false},"priority":1,"maxPeerCount":0}'

ENDPOINTS