Description: Create Layout
URL: http://{your-server-url}/api/v1/core/applications/{applicationid}/layouts
Method: POST
Token Required: True
currentaccountid: {accountid - optional and default value is user's own account}
content-type: application/json or content-type: application/xml
token: {token}
Portal Administrator, Account Administrator, Account Owner, Content Administrator
Type: Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Rights
Right | Require |
---|---|
Application_Management | Yes |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application.ApplicationRequest
Parameter | Type | Nullable |
---|---|---|
Request.Layouts | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Layout[] | False |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application.ApplicationResponse
Parameter | Type |
---|---|
Response.Layouts | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.Layout[] |
<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"> <Layouts xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications"> <a:Layout> <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:Layout> </Layouts> </ApplicationRequest>
{ "Layouts":[ { "Name":"String", "Properties":[ { "Key":"String", "Value":"String" } ] } ] }
<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> <Layouts xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications"> <a:Layout> <a:ApplicationId>123</a:ApplicationId> <a:AspectRatio>1000</a:AspectRatio> <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:WidgetPlacements> <a:WidgetPlacement> <a:Color>String</a:Color> <a:Height>1000</a:Height> <a:Left>1000</a:Left> <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:Opacity>1000</a:Opacity> <a:Top>1000</a:Top> <a:TransitionInType>String</a:TransitionInType> <a:TransitionOutType>String</a:TransitionOutType> <a:WidgetId>123</a:WidgetId> <a:WidgetName>String</a:WidgetName> <a:Width>1000</a:Width> </a:WidgetPlacement> </a:WidgetPlacements> </a:Layout> </Layouts> </ApplicationResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1, "Layouts":[ { "ApplicationId":123, "AspectRatio":1000, "Guid":"11111111-1111-1111-1111-111111111111", "Id":123, "Name":"String", "Properties":[ { "Key":"String", "Value":"String" } ], "WidgetPlacements":[ { "Color":"String", "Height":1000, "Left":1000, "MetaData":[ { "Key":"String", "Value":"String" } ], "Opacity":1000, "Top":1000, "TransitionInType":"String", "TransitionOutType":"String", "WidgetId":123, "WidgetName":"String", "Width":1000 } ] } ] }