{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a preset belonging to the current App","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/realtimekit_account_identifier"},"app_id":{"$ref":"#/definitions/realtimekit_app_id"}},"required":["account_id","app_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/realtimekit_Preset"}},"required":["path","body"],"additionalProperties":false,"definitions":{"realtimekit_account_identifier":{"description":"The account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"realtimekit_app_id":{"description":"The app identifier tag.","type":"string","examples":["14a396e7-ca44-4937-bf1f-050a69118543"]},"realtimekit_Preset":{"type":"object","properties":{"config":{"type":"object","properties":{"livestream_viewer_qualities":{"description":"Livestream viewer quality levels.","type":["array","null"],"items":{"minimum":0,"type":"integer"},"default":[]},"max_screenshare_count":{"description":"Maximum number of screen shares that can be active at a given time","type":"number"},"max_video_streams":{"description":"Maximum number of streams that are visible on a device","type":"object","properties":{"desktop":{"description":"Maximum number of video streams visible on desktop devices","type":"number"},"mobile":{"description":"Maximum number of streams visible on mobile devices","type":"number"}},"required":["mobile","desktop"]},"media":{"description":"Media configuration options. eg: Video quality","type":"object","properties":{"audio":{"description":"Control options for Audio quality.","type":"object","properties":{"enable_high_bitrate":{"description":"Enable High Quality Audio for your meetings","type":"boolean"},"enable_stereo":{"description":"Enable Stereo for your meetings","type":"boolean"}}},"screenshare":{"description":"Configuration options for participant screen shares","type":"object","properties":{"frame_rate":{"description":"Frame rate of screen share","type":"number"},"quality":{"description":"Quality of screen share ","type":"string","enum":["hd","vga","qvga","fhd","uhd"]}},"required":["quality","frame_rate"]},"video":{"description":"Configuration options for participant videos","type":"object","properties":{"frame_rate":{"description":"Frame rate of participants' video","type":"number","maximum":30},"quality":{"description":"Video quality of participants","type":"string","enum":["hd","vga","qvga","fhd","uhd"]},"simulcast":{"description":"Enable simulcast for participant videos.","type":"boolean","default":false}},"required":["quality","frame_rate"]}},"required":["video","screenshare"]},"view_type":{"description":"Type of the meeting","type":"string","enum":["GROUP_CALL","WEBINAR","AUDIO_ROOM","LIVESTREAM"]}},"required":["view_type","max_video_streams","max_screenshare_count","media"]},"name":{"description":"Name of the preset","type":"string"},"permissions":{"type":"object","properties":{"accept_stage_requests":{"type":"boolean"},"accept_waiting_requests":{"description":"Whether this participant can accept waiting requests","type":"boolean"},"can_accept_production_requests":{"type":"boolean"},"can_change_participant_permissions":{"type":"boolean"},"can_edit_display_name":{"type":"boolean"},"can_livestream":{"type":"boolean"},"can_record":{"type":"boolean"},"can_spotlight":{"type":"boolean"},"chat":{"type":"object","properties":{"private":{"type":"object","properties":{"can_receive":{"type":"boolean"},"can_send":{"type":"boolean"},"files":{"type":"boolean"},"text":{"type":"boolean"}},"required":["can_send","can_receive","text","files"]},"public":{"type":"object","properties":{"can_send":{"description":"Can send messages in general","type":"boolean"},"files":{"description":"Can send file messages","type":"boolean"},"text":{"description":"Can send text messages","type":"boolean"}},"required":["can_send","text","files"]}},"required":["public","private"]},"connected_meetings":{"type":"object","properties":{"can_alter_connected_meetings":{"type":"boolean"},"can_switch_connected_meetings":{"type":"boolean"},"can_switch_to_parent_meeting":{"type":"boolean"}},"required":["can_alter_connected_meetings","can_switch_connected_meetings","can_switch_to_parent_meeting"]},"disable_participant_audio":{"type":"boolean"},"disable_participant_screensharing":{"type":"boolean"},"disable_participant_video":{"type":"boolean"},"hidden_participant":{"description":"Whether this participant is visible to others or not","type":"boolean"},"is_recorder":{"type":"boolean"},"kick_participant":{"type":"boolean"},"media":{"description":"Media permissions","type":"object","properties":{"audio":{"description":"Audio permissions","type":"object","properties":{"can_produce":{"description":"Can produce audio","type":"string","enum":["ALLOWED","NOT_ALLOWED","CAN_REQUEST"]}},"required":["can_produce"]},"screenshare":{"description":"Screenshare permissions","type":"object","properties":{"can_produce":{"description":"Can produce screen share video","type":"string","enum":["ALLOWED","NOT_ALLOWED","CAN_REQUEST"]}},"required":["can_produce"]},"video":{"description":"Video permissions","type":"object","properties":{"can_produce":{"description":"Can produce video","type":"string","enum":["ALLOWED","NOT_ALLOWED","CAN_REQUEST"]}},"required":["can_produce"]}},"required":["video","audio","screenshare"]},"pin_participant":{"type":"boolean"},"plugins":{"description":"Plugin permissions","type":"object","properties":{"can_close":{"description":"Can close plugins that are already open","type":"boolean"},"can_edit_config":{"description":"Can edit plugin config","type":"boolean"},"can_start":{"description":"Can start plugins","type":"boolean"},"config":{"$ref":"#/definitions/realtimekit_PresetPluginConfig"}},"required":["can_close","can_start","can_edit_config","config"]},"polls":{"description":"Poll permissions","type":"object","properties":{"can_create":{"description":"Can create polls","type":"boolean"},"can_view":{"description":"Can view polls","type":"boolean"},"can_vote":{"description":"Can vote on polls","type":"boolean"}},"required":["can_create","can_vote","can_view"]},"recorder_type":{"description":"Type of the recording peer","type":"string","enum":["RECORDER","LIVESTREAMER","NONE"]},"show_participant_list":{"type":"boolean"},"stage_access":{"type":"string","enum":["ALLOWED","NOT_ALLOWED","CAN_REQUEST"]},"stage_enabled":{"type":"boolean"},"transcription_enabled":{"type":"boolean"},"waiting_room_type":{"description":"Waiting room type","type":"string","enum":["SKIP","ON_PRIVILEGED_USER_ENTRY","SKIP_ON_ACCEPT"]}},"required":["accept_waiting_requests","can_accept_production_requests","can_edit_display_name","can_spotlight","recorder_type","disable_participant_audio","disable_participant_screensharing","disable_participant_video","kick_participant","pin_participant","can_record","can_livestream","waiting_room_type","plugins","connected_meetings","polls","media","chat","hidden_participant","show_participant_list","can_change_participant_permissions"]},"ui":{"type":"object","properties":{"design_tokens":{"type":"object","properties":{"border_radius":{"type":"string","enum":["sharp","rounded","extra-rounded","circular"]},"border_width":{"type":"string","enum":["none","thin","fat"]},"colors":{"type":"object","properties":{"background":{"type":"object","properties":{"600":{"type":"string"},"700":{"type":"string"},"800":{"type":"string"},"900":{"type":"string"},"1000":{"type":"string"}},"required":["600","700","800","900","1000"]},"brand":{"type":"object","properties":{"300":{"type":"string"},"400":{"type":"string"},"500":{"type":"string"},"600":{"type":"string"},"700":{"type":"string"}},"required":["300","400","500","600","700"]},"danger":{"type":"string"},"success":{"type":"string"},"text":{"type":"string"},"text_on_brand":{"type":"string"},"video_bg":{"type":"string"},"warning":{"type":"string"}},"required":["brand","background","danger","text","text_on_brand","success","video_bg","warning"]},"font_family":{"type":"string"},"google_font":{"type":"string"},"logo":{"type":"string","format":"uri"},"spacing_base":{"type":"number","minimum":1},"theme":{"type":"string","enum":["darkest","dark","light"]}},"required":["border_radius","border_width","spacing_base","theme","colors"]}},"required":["design_tokens"]}},"required":["name","config","permissions","ui"],"title":"Preset"},"realtimekit_PresetPluginConfig":{"description":"Plugin configuration keyed by plugin UUID.","type":"object","additionalProperties":{"additionalProperties":true,"properties":{"access_control":{"type":"string","enum":["FULL_ACCESS","VIEW_ONLY"]},"handles_view_only":{"type":"boolean"}},"type":"object"}}}},"name":"Create a preset","id":"cloudflare.post-presets","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","app_id":"14a396e7-ca44-4937-bf1f-050a69118543"},"body":{"name":"example","config":{"view_type":"GROUP_CALL","max_video_streams":{"mobile":1,"desktop":1},"max_screenshare_count":1,"media":{"video":{"quality":"hd","frame_rate":1},"screenshare":{"quality":"hd","frame_rate":1}}},"permissions":{"accept_waiting_requests":false,"can_accept_production_requests":false,"can_edit_display_name":false,"can_spotlight":false,"recorder_type":"RECORDER","disable_participant_audio":false,"disable_participant_screensharing":false,"disable_participant_video":false,"kick_participant":false,"pin_participant":false,"can_record":false,"can_livestream":false,"waiting_room_type":"SKIP","plugins":{"can_close":false,"can_start":false,"can_edit_config":false,"config":{}},"connected_meetings":{"can_alter_connected_meetings":false,"can_switch_connected_meetings":false,"can_switch_to_parent_meeting":false},"polls":{"can_create":false,"can_vote":false,"can_view":false},"media":{"video":{"can_produce":"ALLOWED"},"audio":{"can_produce":"ALLOWED"},"screenshare":{"can_produce":"ALLOWED"}},"chat":{"public":{"can_send":false,"text":false,"files":false},"private":{"can_send":false,"can_receive":false,"text":false,"files":false}},"hidden_participant":false,"show_participant_list":false,"can_change_participant_permissions":false},"ui":{"design_tokens":{"border_radius":"sharp","border_width":"none","spacing_base":1,"theme":"darkest","colors":{"brand":{"300":"example","400":"example","500":"example","600":"example","700":"example"},"background":{"600":"example","700":"example","800":"example","900":"example","1000":"example"},"danger":"example","text":"example","text_on_brand":"example","success":"example","video_bg":"example","warning":"example"}}}}},"maxRequests":1,"summary":false}}