UpdateWidget

 

ApplicationService / UpdateWidget

 

Description: Update Widget

URL: http://{your-server-url}/api/v1/core/applications/widgets/{widgetId}

Method: PUT

Token Required: True


Request Headers:
currentaccountid: {accountid - optional and default value is user's own account}
content-type: application/json or content-type: application/xml
token: {token}
Required Roles:

Portal Administrator, Account Administrator, Account Owner, Content Administrator, Widget Manager

Rights:

Type: Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Rights

Right Require
Widget_Management Yes

Request:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application.ApplicationRequest

Parameter Type Nullable
Request.Widget Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Widget False

Request Query Parameters:
Parameter Type Nullable Description
schedulable boolean True Only apply to mediazone widget, to enable or disable schedulable mode
enablePlayoutMetrics boolean True Only apply to mediazone widget, to enable or disable Playout Metrics

Example: http://{your-server-url}/api/v1/core/applications/widgets/{widgetId}?


Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application.ApplicationResponse

Parameter Type
Response.Widget Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Widget

Enums:
Field Name Values
Type Nexus.AppSpace.Service.Contract.Model.Enums.Application.ElementType MediaZone = 0, TextTicker = 1, RSSTicker = 2, DateTime = 3, WeatherInfo = 4, RSSViewer = 5, PlainText = 6, InfoMenu = 7, Button = 8, HTMLSnippet = 9, EventCalendar = 10, CloneWidget = 11, SlideBar = 12, FlashContainer = 13, WayFinder = 14, TableListing = 15, MediaTicker = 16, KeyPad = 17, MediaContainer = 18, RemoteControl = 19, ExtensionWidget = 20, SIPWidget = 21

The following is an example request Xml body:
<ApplicationRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Widget xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications">
    <a:AssetDatasourceId>123</a:AssetDatasourceId>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:Name>String</a:Name>
    <a:Properties xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO">
      <b:KeyValuePair>
        <b:Key>String</b:Key>
        <b:Value>String</b:Value>
      </b:KeyValuePair>
    </a:Properties>
    <a:Type>SIPWidget</a:Type>
  </Widget>
</ApplicationRequest>

The following is an example request Json body:
{
	"Widget":{
		"AssetDatasourceId":123,
		"Guid":"11111111-1111-1111-1111-111111111111",
		"Name":"String",
		"Properties":[
			{
				"Key":"String",
				"Value":"String"
			}
		],
		"Type":21
	}
}

The following is an example response Xml body:
<ApplicationResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <Widget xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications">
    <a:ApplicationId>123</a:ApplicationId>
    <a:AssetDatasourceId>123</a:AssetDatasourceId>
    <a:DatasourceId>123</a:DatasourceId>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:Id>123</a:Id>
    <a:Name>String</a:Name>
    <a:Properties xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO">
      <b:KeyValuePair>
        <b:Key>String</b:Key>
        <b:Value>String</b:Value>
      </b:KeyValuePair>
    </a:Properties>
    <a:Type>SIPWidget</a:Type>
  </Widget>
</ApplicationResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Widget":{
		"ApplicationId":123,
		"AssetDatasourceId":123,
		"DatasourceId":123,
		"Guid":"11111111-1111-1111-1111-111111111111",
		"Id":123,
		"Name":"String",
		"Properties":[
			{
				"Key":"String",
				"Value":"String"
			}
		],
		"Type":21
	}
}