UpdateLayoutSchedule

 

ApplicationService / UpdateLayoutSchedule

 

Description: Update LayoutSchedule

URL: http://{your-server-url}/api/v1/core/applications/layoutschedules/{layoutscheduleId}

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, Schedule Manager

Rights:

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

Right Require
Schedule_Management Yes

Request:

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

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

Response:

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

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

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">
  <LayoutSchedule xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications">
    <a:Disable>true</a:Disable>
    <a:EndDate>2014-11-20T17:57:37.2665678Z</a:EndDate>
    <a:IsExclusive>true</a:IsExclusive>
    <a:IsNoEndDate>true</a:IsNoEndDate>
    <a:Name>String</a:Name>
    <a:Position>123</a:Position>
    <a:RecurrencePatterns xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Schedule">
      <b:RecurrencePattern>
        <b:DaysToPlay xmlns:c="http://schemas.datacontract.org/2004/07/System">
          <c:DayOfWeek>Saturday</c:DayOfWeek>
        </b:DaysToPlay>
        <b:EndTime>2014-11-20T17:57:37.2665678Z</b:EndTime>
        <b:IsAllDayEvent>true</b:IsAllDayEvent>
        <b:PlayOnAllDays>true</b:PlayOnAllDays>
        <b:StartTime>2014-11-20T17:57:37.2665678Z</b:StartTime>
      </b:RecurrencePattern>
    </a:RecurrencePatterns>
    <a:ScheduleMode>roundRobin</a:ScheduleMode>
    <a:StartDate>2014-11-20T17:57:37.2665678Z</a:StartDate>
    <a:TagExpression>String</a:TagExpression>
    <a:UseRecurrencePattern>true</a:UseRecurrencePattern>
  </LayoutSchedule>
</ApplicationRequest>

The following is an example request Json body:
{
	"LayoutSchedule":{
		"Disable":true,
		"EndDate":"\/Date(1416506257266)\/",
		"IsExclusive":true,
		"IsNoEndDate":true,
		"Name":"String",
		"Position":123,
		"RecurrencePatterns":[
			{
				"DaysToPlay":[
					6
				],
				"EndTime":"\/Date(1416506257266)\/",
				"IsAllDayEvent":true,
				"PlayOnAllDays":true,
				"StartTime":"\/Date(1416506257266)\/"
			}
		],
		"ScheduleMode":1,
		"StartDate":"\/Date(1416506257266)\/",
		"TagExpression":"String",
		"UseRecurrencePattern":true
	}
}

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>
  <LayoutSchedule xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications">
    <a:ApplicationId>123</a:ApplicationId>
    <a:Disable>true</a:Disable>
    <a:EndDate>2014-11-20T17:57:37.2665678Z</a:EndDate>
    <a:Id>123</a:Id>
    <a:IsExclusive>true</a:IsExclusive>
    <a:IsNoEndDate>true</a:IsNoEndDate>
    <a:Name>String</a:Name>
    <a:Position>123</a:Position>
    <a:RecurrencePatterns xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Schedule">
      <b:RecurrencePattern>
        <b:DaysToPlay xmlns:c="http://schemas.datacontract.org/2004/07/System">
          <c:DayOfWeek>Saturday</c:DayOfWeek>
        </b:DaysToPlay>
        <b:EndTime>2014-11-20T17:57:37.2665678Z</b:EndTime>
        <b:IsAllDayEvent>true</b:IsAllDayEvent>
        <b:PlayOnAllDays>true</b:PlayOnAllDays>
        <b:StartTime>2014-11-20T17:57:37.2665678Z</b:StartTime>
      </b:RecurrencePattern>
    </a:RecurrencePatterns>
    <a:ScheduleItems xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Schedule">
      <b:ScheduleItem>
        <b:Disable>true</b:Disable>
        <b:Duration>123</b:Duration>
        <b:LayoutId>123</b:LayoutId>
        <b:LayoutName>String</b:LayoutName>
        <b:Properties xmlns:c="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO">
          <c:KeyValuePair>
            <c:Key>String</c:Key>
            <c:Value>String</c:Value>
          </c:KeyValuePair>
        </b:Properties>
        <b:position>123</b:position>
      </b:ScheduleItem>
    </a:ScheduleItems>
    <a:ScheduleMode>roundRobin</a:ScheduleMode>
    <a:StartDate>2014-11-20T17:57:37.2665678Z</a:StartDate>
    <a:TagExpression>String</a:TagExpression>
    <a:UseRecurrencePattern>true</a:UseRecurrencePattern>
  </LayoutSchedule>
</ApplicationResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"LayoutSchedule":{
		"ApplicationId":123,
		"Disable":true,
		"EndDate":"\/Date(1416506257266)\/",
		"Id":123,
		"IsExclusive":true,
		"IsNoEndDate":true,
		"Name":"String",
		"Position":123,
		"RecurrencePatterns":[
			{
				"DaysToPlay":[
					6
				],
				"EndTime":"\/Date(1416506257266)\/",
				"IsAllDayEvent":true,
				"PlayOnAllDays":true,
				"StartTime":"\/Date(1416506257266)\/"
			}
		],
		"ScheduleItems":[
			{
				"Disable":true,
				"Duration":123,
				"LayoutId":123,
				"LayoutName":"String",
				"Properties":[
					{
						"Key":"String",
						"Value":"String"
					}
				],
				"position":123
			}
		],
		"ScheduleMode":1,
		"StartDate":"\/Date(1416506257266)\/",
		"TagExpression":"String",
		"UseRecurrencePattern":true
	}
}