CreateSpaces

 

SpaceService / CreateSpaces

 

Description: Create spaces

URL: http://{your-server-url}/api/v1/core/spaces

Method: POST

Token Required: True


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

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Spaces.SpaceRequest

Parameter Type Nullable
Request.Spaces Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Spaces.Space[]

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Spaces.SpaceResponse

Parameter Type
Response.Spaces Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Spaces.Space[]

The following is an example request Xml body:
<SpaceRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Spaces" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Spaces xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Spaces">
    <a:Space>
      <a:AccountId>123</a:AccountId>
      <a:Active>true</a:Active>
      <a:Description>String</a:Description>
      <a:IconAltBackgroundColor>String</a:IconAltBackgroundColor>
      <a:IconAltForegroundColor>String</a:IconAltForegroundColor>
      <a:IconAltText>String</a:IconAltText>
      <a:IconUrl>String</a:IconUrl>
      <a:Name>String</a:Name>
    </a:Space>
  </Spaces>
</SpaceRequest>

The following is an example request Json body:
{
	"Spaces":[
		{
			"AccountId":123,
			"Active":true,
			"Description":"String",
			"IconAltBackgroundColor":"String",
			"IconAltForegroundColor":"String",
			"IconAltText":"String",
			"IconUrl":"String",
			"Name":"String"
		}
	]
}

The following is an example response Xml body:
<SpaceResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Spaces" 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>
  <Spaces xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Spaces">
    <a:Space>
      <a:AccountId>123</a:AccountId>
      <a:Active>true</a:Active>
      <a:CreatedBy>123</a:CreatedBy>
      <a:CreatedDate>2015-07-01T11:06:05.2693135Z</a:CreatedDate>
      <a:Description>String</a:Description>
      <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
      <a:IconAltBackgroundColor>String</a:IconAltBackgroundColor>
      <a:IconAltForegroundColor>String</a:IconAltForegroundColor>
      <a:IconAltText>String</a:IconAltText>
      <a:IconUrl>String</a:IconUrl>
      <a:Id>123</a:Id>
      <a:Name>String</a:Name>
      <a:UpdatedBy>123</a:UpdatedBy>
      <a:UpdatedDate>2015-07-01T11:06:05.2693135Z</a:UpdatedDate>
    </a:Space>
  </Spaces>
</SpaceResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Spaces":[
		{
			"AccountId":123,
			"Active":true,
			"CreatedBy":123,
			"CreatedDate":"\/Date(1435748765269)\/",
			"Description":"String",
			"Guid":"11111111-1111-1111-1111-111111111111",
			"IconAltBackgroundColor":"String",
			"IconAltForegroundColor":"String",
			"IconAltText":"String",
			"IconUrl":"String",
			"Id":123,
			"Name":"String",
			"UpdatedBy":123,
			"UpdatedDate":"\/Date(1435748765269)\/"
		}
	]
}