UpdateLinkedMediaZones

 

DatasourceService / UpdateLinkedMediaZones

 

Description: Update multiple linked mediazones

URL: http://{your-server-url}/api/v1/core/datasources/mediazones/linkedmediazones

Method: PUT

Token Required: True


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

Portal Administrator, Account Administrator, Account Owner, Widget Manager

Rights:

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

Right Require
Widget_Management Yes
Application_Management Yes

Request:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Datasource.DatasourceRequest

Parameter Type Nullable
Request.LinkedMediaZones Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources.MediaZone.LinkedMediaZone[] False

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Datasource.DatasourceResponse

Parameter Type
Response.LinkedMediaZones Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources.MediaZone.LinkedMediaZone[]

The following is an example request Xml body:
<DatasourceRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Datasource" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <LinkedMediaZones xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources.MediaZone">
    <a:LinkedMediaZone>
      <a:DestinationMediaZone>
        <Guid xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">11111111-1111-1111-1111-111111111111</Guid>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">123</Id>
        <Name xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">String</Name>
        <Type xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">MediaZone</Type>
        <a:ApplicationId>123</a:ApplicationId>
        <a:ApprovalFlow>123</a:ApprovalFlow>
        <a:Description>String</a:Description>
        <a:MaxResX>123</a:MaxResX>
        <a:MaxResY>123</a:MaxResY>
        <a:MediaType>HTML_Text</a:MediaType>
        <a:MinResX>123</a:MinResX>
        <a:MinResY>123</a:MinResY>
        <a:RecordPlayoutMetrics>true</a:RecordPlayoutMetrics>
        <a:Schedulable>true</a:Schedulable>
        <a:Schedules>
          <a:MediaZoneSchedule>
            <a:AllowDuplicates>true</a:AllowDuplicates>
            <a:AutoAdd>true</a:AutoAdd>
            <a:Days>Everyday</a:Days>
            <a:Description>String</a:Description>
            <a:EndDate>2014-08-06T16:20:35.2369452Z</a:EndDate>
            <a:Id>123</a:Id>
            <a:IsExclusive>true</a:IsExclusive>
            <a:MediaZoneId>123</a:MediaZoneId>
            <a:MetaData 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:MetaData>
            <a:Name>String</a:Name>
            <a:Position>123</a:Position>
            <a:StartDate>2014-08-06T16:20:35.2369452Z</a:StartDate>
            <a:Static>true</a:Static>
            <a:TimeSpans>
              <a:MediaZoneScheduleTimeSpan>
                <a:EndTime>2014-08-06T16:20:35.2369452Z</a:EndTime>
                <a:Id>123</a:Id>
                <a:LoopCount>123</a:LoopCount>
                <a:ScheduleId>123</a:ScheduleId>
                <a:StartTime>2014-08-06T16:20:35.2369452Z</a:StartTime>
                <a:Type>123</a:Type>
              </a:MediaZoneScheduleTimeSpan>
            </a:TimeSpans>
            <a:UsergroupId>123</a:UsergroupId>
          </a:MediaZoneSchedule>
        </a:Schedules>
      </a:DestinationMediaZone>
      <a:Id>123</a:Id>
      <a:SourceMediaZone>
        <Guid xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">11111111-1111-1111-1111-111111111111</Guid>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">123</Id>
        <Name xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">String</Name>
        <Type xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">MediaZone</Type>
        <a:ApplicationId>123</a:ApplicationId>
        <a:ApprovalFlow>123</a:ApprovalFlow>
        <a:Description>String</a:Description>
        <a:MaxResX>123</a:MaxResX>
        <a:MaxResY>123</a:MaxResY>
        <a:MediaType>HTML_Text</a:MediaType>
        <a:MinResX>123</a:MinResX>
        <a:MinResY>123</a:MinResY>
        <a:RecordPlayoutMetrics>true</a:RecordPlayoutMetrics>
        <a:Schedulable>true</a:Schedulable>
        <a:Schedules>
          <a:MediaZoneSchedule>
            <a:AllowDuplicates>true</a:AllowDuplicates>
            <a:AutoAdd>true</a:AutoAdd>
            <a:Days>Everyday</a:Days>
            <a:Description>String</a:Description>
            <a:EndDate>2014-08-06T16:20:35.2369452Z</a:EndDate>
            <a:Id>123</a:Id>
            <a:IsExclusive>true</a:IsExclusive>
            <a:MediaZoneId>123</a:MediaZoneId>
            <a:MetaData 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:MetaData>
            <a:Name>String</a:Name>
            <a:Position>123</a:Position>
            <a:StartDate>2014-08-06T16:20:35.2369452Z</a:StartDate>
            <a:Static>true</a:Static>
            <a:TimeSpans>
              <a:MediaZoneScheduleTimeSpan>
                <a:EndTime>2014-08-06T16:20:35.2369452Z</a:EndTime>
                <a:Id>123</a:Id>
                <a:LoopCount>123</a:LoopCount>
                <a:ScheduleId>123</a:ScheduleId>
                <a:StartTime>2014-08-06T16:20:35.2369452Z</a:StartTime>
                <a:Type>123</a:Type>
              </a:MediaZoneScheduleTimeSpan>
            </a:TimeSpans>
            <a:UsergroupId>123</a:UsergroupId>
          </a:MediaZoneSchedule>
        </a:Schedules>
      </a:SourceMediaZone>
    </a:LinkedMediaZone>
  </LinkedMediaZones>
</DatasourceRequest>

The following is an example request Json body:
{
	"LinkedMediaZones":[
		{
			"DestinationMediaZone":{
				"Guid":"11111111-1111-1111-1111-111111111111",
				"Id":123,
				"Name":"String",
				"Type":22,
				"ApplicationId":123,
				"ApprovalFlow":123,
				"Description":"String",
				"MaxResX":123,
				"MaxResY":123,
				"MediaType":17,
				"MinResX":123,
				"MinResY":123,
				"RecordPlayoutMetrics":true,
				"Schedulable":true,
				"Schedules":[
					{
						"AllowDuplicates":true,
						"AutoAdd":true,
						"Days":254,
						"Description":"String",
						"EndDate":"\/Date(1407342035236)\/",
						"Id":123,
						"IsExclusive":true,
						"MediaZoneId":123,
						"MetaData":[
							{
								"Key":"String",
								"Value":"String"
							}
						],
						"Name":"String",
						"Position":123,
						"StartDate":"\/Date(1407342035236)\/",
						"Static":true,
						"TimeSpans":[
							{
								"EndTime":"\/Date(1407342035236)\/",
								"Id":123,
								"LoopCount":123,
								"ScheduleId":123,
								"StartTime":"\/Date(1407342035236)\/",
								"Type":123
							}
						],
						"UsergroupId":123
					}
				]
			},
			"Id":123,
			"SourceMediaZone":{
				"Guid":"11111111-1111-1111-1111-111111111111",
				"Id":123,
				"Name":"String",
				"Type":22,
				"ApplicationId":123,
				"ApprovalFlow":123,
				"Description":"String",
				"MaxResX":123,
				"MaxResY":123,
				"MediaType":17,
				"MinResX":123,
				"MinResY":123,
				"RecordPlayoutMetrics":true,
				"Schedulable":true,
				"Schedules":[
					{
						"AllowDuplicates":true,
						"AutoAdd":true,
						"Days":254,
						"Description":"String",
						"EndDate":"\/Date(1407342035236)\/",
						"Id":123,
						"IsExclusive":true,
						"MediaZoneId":123,
						"MetaData":[
							{
								"Key":"String",
								"Value":"String"
							}
						],
						"Name":"String",
						"Position":123,
						"StartDate":"\/Date(1407342035236)\/",
						"Static":true,
						"TimeSpans":[
							{
								"EndTime":"\/Date(1407342035236)\/",
								"Id":123,
								"LoopCount":123,
								"ScheduleId":123,
								"StartTime":"\/Date(1407342035236)\/",
								"Type":123
							}
						],
						"UsergroupId":123
					}
				]
			}
		}
	]
}

The following is an example response Xml body:
<DatasourceResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Datasource" 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>
  <LinkedMediaZones xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources.MediaZone">
    <a:LinkedMediaZone>
      <a:DestinationMediaZone>
        <Guid xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">11111111-1111-1111-1111-111111111111</Guid>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">123</Id>
        <Name xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">String</Name>
        <Type xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">MediaZone</Type>
        <a:ApplicationId>123</a:ApplicationId>
        <a:ApprovalFlow>123</a:ApprovalFlow>
        <a:Description>String</a:Description>
        <a:MaxResX>123</a:MaxResX>
        <a:MaxResY>123</a:MaxResY>
        <a:MediaType>HTML_Text</a:MediaType>
        <a:MinResX>123</a:MinResX>
        <a:MinResY>123</a:MinResY>
        <a:RecordPlayoutMetrics>true</a:RecordPlayoutMetrics>
        <a:Schedulable>true</a:Schedulable>
        <a:Schedules>
          <a:MediaZoneSchedule>
            <a:AllowDuplicates>true</a:AllowDuplicates>
            <a:AutoAdd>true</a:AutoAdd>
            <a:Days>Everyday</a:Days>
            <a:Description>String</a:Description>
            <a:EndDate>2014-08-06T16:20:35.2399473Z</a:EndDate>
            <a:Id>123</a:Id>
            <a:IsExclusive>true</a:IsExclusive>
            <a:MediaZoneId>123</a:MediaZoneId>
            <a:MetaData 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:MetaData>
            <a:Name>String</a:Name>
            <a:Position>123</a:Position>
            <a:StartDate>2014-08-06T16:20:35.2399473Z</a:StartDate>
            <a:Static>true</a:Static>
            <a:TimeSpans>
              <a:MediaZoneScheduleTimeSpan>
                <a:EndTime>2014-08-06T16:20:35.2399473Z</a:EndTime>
                <a:Id>123</a:Id>
                <a:LoopCount>123</a:LoopCount>
                <a:ScheduleId>123</a:ScheduleId>
                <a:StartTime>2014-08-06T16:20:35.2399473Z</a:StartTime>
                <a:Type>123</a:Type>
              </a:MediaZoneScheduleTimeSpan>
            </a:TimeSpans>
            <a:UsergroupId>123</a:UsergroupId>
          </a:MediaZoneSchedule>
        </a:Schedules>
      </a:DestinationMediaZone>
      <a:Id>123</a:Id>
      <a:SourceMediaZone>
        <Guid xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">11111111-1111-1111-1111-111111111111</Guid>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">123</Id>
        <Name xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">String</Name>
        <Type xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.DataSources">MediaZone</Type>
        <a:ApplicationId>123</a:ApplicationId>
        <a:ApprovalFlow>123</a:ApprovalFlow>
        <a:Description>String</a:Description>
        <a:MaxResX>123</a:MaxResX>
        <a:MaxResY>123</a:MaxResY>
        <a:MediaType>HTML_Text</a:MediaType>
        <a:MinResX>123</a:MinResX>
        <a:MinResY>123</a:MinResY>
        <a:RecordPlayoutMetrics>true</a:RecordPlayoutMetrics>
        <a:Schedulable>true</a:Schedulable>
        <a:Schedules>
          <a:MediaZoneSchedule>
            <a:AllowDuplicates>true</a:AllowDuplicates>
            <a:AutoAdd>true</a:AutoAdd>
            <a:Days>Everyday</a:Days>
            <a:Description>String</a:Description>
            <a:EndDate>2014-08-06T16:20:35.2399473Z</a:EndDate>
            <a:Id>123</a:Id>
            <a:IsExclusive>true</a:IsExclusive>
            <a:MediaZoneId>123</a:MediaZoneId>
            <a:MetaData 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:MetaData>
            <a:Name>String</a:Name>
            <a:Position>123</a:Position>
            <a:StartDate>2014-08-06T16:20:35.2399473Z</a:StartDate>
            <a:Static>true</a:Static>
            <a:TimeSpans>
              <a:MediaZoneScheduleTimeSpan>
                <a:EndTime>2014-08-06T16:20:35.2399473Z</a:EndTime>
                <a:Id>123</a:Id>
                <a:LoopCount>123</a:LoopCount>
                <a:ScheduleId>123</a:ScheduleId>
                <a:StartTime>2014-08-06T16:20:35.2399473Z</a:StartTime>
                <a:Type>123</a:Type>
              </a:MediaZoneScheduleTimeSpan>
            </a:TimeSpans>
            <a:UsergroupId>123</a:UsergroupId>
          </a:MediaZoneSchedule>
        </a:Schedules>
      </a:SourceMediaZone>
    </a:LinkedMediaZone>
  </LinkedMediaZones>
</DatasourceResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"LinkedMediaZones":[
		{
			"DestinationMediaZone":{
				"Guid":"11111111-1111-1111-1111-111111111111",
				"Id":123,
				"Name":"String",
				"Type":22,
				"ApplicationId":123,
				"ApprovalFlow":123,
				"Description":"String",
				"MaxResX":123,
				"MaxResY":123,
				"MediaType":17,
				"MinResX":123,
				"MinResY":123,
				"RecordPlayoutMetrics":true,
				"Schedulable":true,
				"Schedules":[
					{
						"AllowDuplicates":true,
						"AutoAdd":true,
						"Days":254,
						"Description":"String",
						"EndDate":"\/Date(1407342035239)\/",
						"Id":123,
						"IsExclusive":true,
						"MediaZoneId":123,
						"MetaData":[
							{
								"Key":"String",
								"Value":"String"
							}
						],
						"Name":"String",
						"Position":123,
						"StartDate":"\/Date(1407342035239)\/",
						"Static":true,
						"TimeSpans":[
							{
								"EndTime":"\/Date(1407342035239)\/",
								"Id":123,
								"LoopCount":123,
								"ScheduleId":123,
								"StartTime":"\/Date(1407342035239)\/",
								"Type":123
							}
						],
						"UsergroupId":123
					}
				]
			},
			"Id":123,
			"SourceMediaZone":{
				"Guid":"11111111-1111-1111-1111-111111111111",
				"Id":123,
				"Name":"String",
				"Type":22,
				"ApplicationId":123,
				"ApprovalFlow":123,
				"Description":"String",
				"MaxResX":123,
				"MaxResY":123,
				"MediaType":17,
				"MinResX":123,
				"MinResY":123,
				"RecordPlayoutMetrics":true,
				"Schedulable":true,
				"Schedules":[
					{
						"AllowDuplicates":true,
						"AutoAdd":true,
						"Days":254,
						"Description":"String",
						"EndDate":"\/Date(1407342035239)\/",
						"Id":123,
						"IsExclusive":true,
						"MediaZoneId":123,
						"MetaData":[
							{
								"Key":"String",
								"Value":"String"
							}
						],
						"Name":"String",
						"Position":123,
						"StartDate":"\/Date(1407342035239)\/",
						"Static":true,
						"TimeSpans":[
							{
								"EndTime":"\/Date(1407342035239)\/",
								"Id":123,
								"LoopCount":123,
								"ScheduleId":123,
								"StartTime":"\/Date(1407342035239)\/",
								"Type":123
							}
						],
						"UsergroupId":123
					}
				]
			}
		}
	]
}