UpdateScheduleItemsPosition

 

ApplicationService / UpdateScheduleItemsPosition

 

Description: Update LayoutSchedule item

URL: http://{your-server-url}/api/v1/core/applications/layoutschedules/{layoutscheduleid}/scheduleitems/positions

Method: PUT

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
currentaccountid: {accountid - optional and default value is user's own account}
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 Query Parameters:
Parameter Type Nullable Description
positionorder int False comma separated values, eg. positionorder=3,1,4,2

Example: http://{your-server-url}/api/v1/core/applications/layoutschedules/{layoutscheduleid}/scheduleitems/positions?positionorder=100


Response:

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

Parameter Type
Response.ScheduleItems Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Schedule.ScheduleItem[]

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>
  <ScheduleItems xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Schedule">
    <a:ScheduleItem>
      <a:Disable>true</a:Disable>
      <a:Duration>123</a:Duration>
      <a:LayoutId>123</a:LayoutId>
      <a:LayoutName>String</a:LayoutName>
      <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:position>123</a:position>
    </a:ScheduleItem>
  </ScheduleItems>
</ApplicationResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"ScheduleItems":[
		{
			"Disable":true,
			"Duration":123,
			"LayoutId":123,
			"LayoutName":"String",
			"Properties":[
				{
					"Key":"String",
					"Value":"String"
				}
			],
			"position":123
		}
	]
}