==== [[TVOpen Message Manager API Command - Update Audio for Live Channel|Update Audio for Live Channel]] ==URL STRUCTURE ==''Command name''<big>http://{host}: {port}/msg_mng/commands/update_audio_for_live_channel</big>
''Command-specific entry parameters'': == HTTP METHOD ==* channel_id: ID of the channel on which to force a specific audio language. Mandatory.* audio language in ISO 639-1 format. If this value is empty, this channel will return to its default audio language, specified in a local configuration variable; if this local configuration variable doesn’t exist then [[OPCHToken_DefaultAudioLanguage|DefaultAudioLanguage]] will be used. Optional.''Command-specific parameters sent to GVP DataHub'': * Audio language established for the channel.* ChannelID which audio language has been changed.''Supported targets'': it must be possible to send this command to one STB.POST
== PARAMETERS =={| class="wikitable"|-! Name !! Description !! Parameter !! Mandatory !! Type !! Format|-| colspan=6 align="center" | ''Description'<big>[[TVOpen Message Manager API Common Parameters|Common Parameters]]</big>''': This command changes the configuration |-| channel_id || ID of the STB enforcing a certain channel on which to force audio language || Specific || true || integer || int32|-| audio || Audio language for a certain channelin [https://en. It overwrites the configuration that might have been eventually set by the end user in the STBs UIwikipedia. This configuration is stored in org/tmpwiki/ChannelSettingsList_of_ISO_639-1_codes ISO 639-1] format.ini internal file<br>If this value is empty, so it is stored in volatile memory and it this channel will be lost return to its default audio language,specified in every STB rebootlocal configuration value [[OPCHToken_DefaultAudioLanguage|DefaultAudioLanguage]].<br><br>If operator wants to set the "Original" audio track (which does not exists on ISO639-n codes) on any channel, set this variable to '''og'''.|| Specific || false || string || string|} == RESPONSES =={| class="wikitable"|-! Code !! Summary !! Response !! Type !! Description|-| 200 || Object Response || status_code <br> message || int32 <br> string || Identifier that indicates the operation is correct (0) <br> Message description response|-| 400 || Unrecognized mandatory fields|| status_code <br> message || int32 <br> string || Error code from Message Manager <br> Error description response|-| 500 || Unexpected Error || status_code <br> message || int32 <br> string || Error code from Message Manager won’t validate that the or destination server (Infopush/Sprayer) <br> Error description response|} == SAMPLE ===== Request ===curl --data "instance_id=25&device_type=802&command_id=inh70eozkjxpw7jsqjtel9er&start_time=2017-01-03T12:1&end_time=2017-01-03T12:18:00Z&target_type=stb_id&stb_id=keke&source_id=0&channel_id corresponds to a valid id configured in the instance; it is the responsibility of the source of the command to perform this validation=12" http://localhost:8585/msg_mng/commands/update_audio_for_live_channel === Response ==={"status_code": 0, "message": "Operation successful.Info push message: Message inserted into database"}