Run in Apidog
Update a player for a project# 📣 this endpoint update a player under a project . In this PUT request the project ID and player ID has to be provided . All the necessary data has to be provided in the request payload ✳ list of URL parameters project_id = 36 character in length
player_id = 36 character in length
📢 Info message : Here URL is contructed likePUT /projects/<project_id>/players/<player_id>
Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Body Params multipart/form-data
Request Code Samples
curl --location --request PUT 'http://localhost:8080/v1/projects/f32a0116-fe11-454c-8e6a-5ff4101882e5/players/967bb2e1-bf97-4651-b65c-acefd4df84da' \
--form 'brand_logo=@"/home/raka/Documents/gotipath/note/logo/gotipath_dark.png"' \
--form 'name="Player 1 upated"' \
--form 'primary_color="#111111"' \
--form 'custom_html="Custom HTML"' \
--form 'language="en"' \
--form 'font_family="Arial"' \
--form 'font_size="15"' \
--form 'caption="Sample caption"' \
--form 'controls="{\"big_play_button\":true,\"play_pause_button\":true,\"setting_button\":true,\"volume_control\":true,\"mute_button\":true,\"caption_button\":true,\"picture_in_picture\":true,\"seekbar\":true,\"double_tap\":true,\"cast\":true,\"fullscreen\":true}"' \
--form 'settings="{\"caption\":true,\"video_quality\":true,\"speed_control\":true,\"video_loop\":true}"' \
--form 'is_default="0"' \
--form 'logo_redirect_url="https://res.cloudinary.com/dqo0ssnti/image/upload/v1642489744/samples/1007550_t0uscy.jpg"'
Responses application/json Generate Code
{ "message" : "Player updated successfully" , "result" : { "id" : "00000000-0000-0000-0000-000000000000" , "user_id" : "10bb71cf-57e0-436d-a449-0b68ef13c731" , "collection_id" : "00000000-0000-0000-0000-000000000000" , "project_id" : "5eca71a3-bc93-45cf-ad6e-45be2961f921" , "name" : "Sample Player bot" , "primary_color" : "#FFFFFF" , "custom_html" : "<p>Custom HTML</p>" , "language" : "en" , "font_family" : "Arial" , "font_size" : 14 , "caption" : "Sample Caption" , "controls" : "Sample Controls" , "settings" : "Sample Settings" , "is_default" : true , "created_at" : "0001-01-01T00:00:00Z" , "updated_at" : "2024-02-06T11:16:19.922581159Z" , "created_by" : null , "updated_by" : "10bb71cf-57e0-436d-a449-0b68ef13c731" } , "success" : true }
Modified at 2024-07-18 04:43:31