curl --location --request POST 'https://api.tenbyte.io/v1/libraries/1afdab02-a4d0-48f3-b35b-53c0dde31cbb/players' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Default Player Changes",
"language": "fr",
"font_family": "Rubik",
"custom_html_head": "<!-- Custom analytics script -->",
"custom_html_footer": "<footer>Powered by MyApp</footer>",
"playback_speeds": [
0.75,
0.5,
1.0,
1.5,
2.0
],
"is_beta_enabled": true,
"is_default": false,
"enable_resumable_position": true,
"appearance": {
"primary_color": "#1D9BF0",
"caption_font_color": "#FFFFFF",
"caption_background_color": "#000000",
"font_size": 14,
"caption_font_size": 18
},
"controls": {
"backward": false,
"forward": false,
"airplay": false,
"big_play_button": false,
"captions": false,
"chromecast": false,
"current_time": false,
"duration": false,
"fullscreen": false,
"mute": false,
"picture_in_picture": false,
"play_pause": false,
"progress": false,
"settings": false,
"volume": false
}
}'{
"data": {
"created_at": "2025-10-19T20:00:43.475427+06:00",
"updated_at": "2025-10-19T20:00:43.475427+06:00",
"created_by": "ce877d84-c433-46fc-803d-ede73a8375bc",
"updated_by": "ce877d84-c433-46fc-803d-ede73a8375bc",
"font_family": "Rubik",
"custom_html_footer": "<footer>Powered by MyApp</footer>",
"name": "Default Player",
"language": "en",
"custom_html_head": "<!-- Custom analytics script -->",
"playback_speeds": [
0.5,
1,
1.5,
2
],
"appearance": {
"primary_color": "#1D9BF0",
"caption_font_color": "#FFFFFF",
"caption_background_color": "#000000",
"font_size": 16,
"caption_font_size": 18
},
"library_id": "b17ccdc7-eb3d-4d03-b0af-781d3c38c7e9",
"organization_id": "8babf060-e844-49e5-893c-35d0bf2edfc6",
"id": "1aaff3a6-5d28-4be5-a503-eff1f33e7010",
"controls": {
"backward": true,
"forward": true,
"big_play_button": true,
"captions": true,
"current_time": true,
"duration": true,
"fullscreen": true,
"mute": true,
"picture_in_picture": true,
"play_pause": true,
"progress": true,
"settings": true,
"volume": true
},
"is_beta_enabled": true,
"is_default": false,
"enable_resumable_position": true
},
"message": "Player Created Successfully",
"success": true
}