UpdateAccount

 

AccountService / UpdateAccount

 

Description: Update account

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

Method: PUT

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
token: {token}
Required Roles:

Portal Administrator, Account Administrator, Account Owner

Rights:

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

Right Require Comment
Portal_Management Optional Optional but need to have at least one
Account_Management Optional
Account_Owner Optional

Request:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Account.AccountRequest

Parameter Type Nullable Comment
Request.Account Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Accounts.Account False Only Portal Administrator and Account Administrator able to edit "License, Status, Type, GroupId, DateExpired"

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Account.AccountResponse

Parameter Type
Response.Account Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Accounts.Account

Enums:
Field Name Values
Type Nexus.AppSpace.Service.Contract.Model.Enums.Account.Type Undefined = 0, Trial = 1, Full = 2, Server = 3
Status Nexus.AppSpace.Service.Contract.Model.Enums.Account.Status Undefined = 0, Active = 1, Disabled = 2, Pending_Activation = 3, Deleted = 4

The following is an example request Xml body:
<AccountRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Account" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Account xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Accounts">
    <a:CloudGuid>String</a:CloudGuid>
    <a:DateCommenced>2015-01-05T14:45:30.278995Z</a:DateCommenced>
    <a:DateExpired>2015-01-05T14:45:30.278995Z</a:DateExpired>
    <a:GroupId>123</a:GroupId>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:HomeNetworkId>123</a:HomeNetworkId>
    <a:License>
      <a:ApplicationUsed>123</a:ApplicationUsed>
      <a:ContentSizeUsed>0</a:ContentSizeUsed>
      <a:Continent>South_America</a:Continent>
      <a:DMPPlayerUsed>123</a:DMPPlayerUsed>
      <a:Duration>123</a:Duration>
      <a:Edition>Team</a:Edition>
      <a:Feature>Developer</a:Feature>
      <a:Language>String</a:Language>
      <a:MaxApplications>123</a:MaxApplications>
      <a:MaxBandwidth>123</a:MaxBandwidth>
      <a:MaxDMPPlayers>123</a:MaxDMPPlayers>
      <a:MaxNetworks>123</a:MaxNetworks>
      <a:MaxPlayers>123</a:MaxPlayers>
      <a:MaxSmartHubs>123</a:MaxSmartHubs>
      <a:MaxTotalContentSize>123</a:MaxTotalContentSize>
      <a:MaxUsers>123</a:MaxUsers>
      <a:MaxVideowall_NEXMPV10Players>123</a:MaxVideowall_NEXMPV10Players>
      <a:MaxVideowall_NEXMPV12Players>123</a:MaxVideowall_NEXMPV12Players>
      <a:MaxVideowall_NEXMPV24Players>123</a:MaxVideowall_NEXMPV24Players>
      <a:MaxVideowall_NEXMPV5Players>123</a:MaxVideowall_NEXMPV5Players>
      <a:MaxVideowall_NEXMPV6Players>123</a:MaxVideowall_NEXMPV6Players>
      <a:NetworkUsed>123</a:NetworkUsed>
      <a:PlayerUsed>123</a:PlayerUsed>
      <a:SmartHubUsed>123</a:SmartHubUsed>
      <a:TimeZone>String</a:TimeZone>
      <a:UserUsed>123</a:UserUsed>
      <a:Videowall_NEXMPV10PlayerUsed>123</a:Videowall_NEXMPV10PlayerUsed>
      <a:Videowall_NEXMPV12PlayerUsed>123</a:Videowall_NEXMPV12PlayerUsed>
      <a:Videowall_NEXMPV24PlayerUsed>123</a:Videowall_NEXMPV24PlayerUsed>
      <a:Videowall_NEXMPV5PlayerUsed>123</a:Videowall_NEXMPV5PlayerUsed>
      <a:Videowall_NEXMPV6PlayerUsed>123</a:Videowall_NEXMPV6PlayerUsed>
    </a:License>
    <a:Name>String</a:Name>
    <a:Status>Deleted</a:Status>
    <a:Type>Server</a:Type>
  </Account>
</AccountRequest>

The following is an example request Json body:
{
	"Account":{
		"CloudGuid":"String",
		"DateCommenced":"\/Date(1420469130278)\/",
		"DateExpired":"\/Date(1420469130278)\/",
		"GroupId":123,
		"Guid":"11111111-1111-1111-1111-111111111111",
		"HomeNetworkId":123,
		"License":{
			"ApplicationUsed":123,
			"ContentSizeUsed":0,
			"Continent":7,
			"DMPPlayerUsed":123,
			"Duration":123,
			"Edition":2,
			"Feature":8,
			"Language":"String",
			"MaxApplications":123,
			"MaxBandwidth":123,
			"MaxDMPPlayers":123,
			"MaxNetworks":123,
			"MaxPlayers":123,
			"MaxSmartHubs":123,
			"MaxTotalContentSize":123,
			"MaxUsers":123,
			"MaxVideowall_NEXMPV10Players":123,
			"MaxVideowall_NEXMPV12Players":123,
			"MaxVideowall_NEXMPV24Players":123,
			"MaxVideowall_NEXMPV5Players":123,
			"MaxVideowall_NEXMPV6Players":123,
			"NetworkUsed":123,
			"PlayerUsed":123,
			"SmartHubUsed":123,
			"TimeZone":"String",
			"UserUsed":123,
			"Videowall_NEXMPV10PlayerUsed":123,
			"Videowall_NEXMPV12PlayerUsed":123,
			"Videowall_NEXMPV24PlayerUsed":123,
			"Videowall_NEXMPV5PlayerUsed":123,
			"Videowall_NEXMPV6PlayerUsed":123
		},
		"Name":"String",
		"Status":4,
		"Type":3
	}
}

The following is an example response Xml body:
<AccountResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Account" 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>
  <Account xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Accounts">
    <a:APIKey>11111111-1111-1111-1111-111111111111</a:APIKey>
    <a:CloudGuid>String</a:CloudGuid>
    <a:CreatedDate>2015-01-05T14:45:30.2799957Z</a:CreatedDate>
    <a:DateCommenced>2015-01-05T14:45:30.2799957Z</a:DateCommenced>
    <a:DateExpired>2015-01-05T14:45:30.2799957Z</a:DateExpired>
    <a:GroupId>123</a:GroupId>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:HomeNetworkId>123</a:HomeNetworkId>
    <a:Id>123</a:Id>
    <a:License>
      <a:ApplicationUsed>123</a:ApplicationUsed>
      <a:ContentSizeUsed>0</a:ContentSizeUsed>
      <a:Continent>South_America</a:Continent>
      <a:DMPPlayerUsed>123</a:DMPPlayerUsed>
      <a:Duration>123</a:Duration>
      <a:Edition>Team</a:Edition>
      <a:Feature>Developer</a:Feature>
      <a:Language>String</a:Language>
      <a:MaxApplications>123</a:MaxApplications>
      <a:MaxBandwidth>123</a:MaxBandwidth>
      <a:MaxDMPPlayers>123</a:MaxDMPPlayers>
      <a:MaxNetworks>123</a:MaxNetworks>
      <a:MaxPlayers>123</a:MaxPlayers>
      <a:MaxSmartHubs>123</a:MaxSmartHubs>
      <a:MaxTotalContentSize>123</a:MaxTotalContentSize>
      <a:MaxUsers>123</a:MaxUsers>
      <a:MaxVideowall_NEXMPV10Players>123</a:MaxVideowall_NEXMPV10Players>
      <a:MaxVideowall_NEXMPV12Players>123</a:MaxVideowall_NEXMPV12Players>
      <a:MaxVideowall_NEXMPV24Players>123</a:MaxVideowall_NEXMPV24Players>
      <a:MaxVideowall_NEXMPV5Players>123</a:MaxVideowall_NEXMPV5Players>
      <a:MaxVideowall_NEXMPV6Players>123</a:MaxVideowall_NEXMPV6Players>
      <a:NetworkUsed>123</a:NetworkUsed>
      <a:PlayerUsed>123</a:PlayerUsed>
      <a:SmartHubUsed>123</a:SmartHubUsed>
      <a:TimeZone>String</a:TimeZone>
      <a:UserUsed>123</a:UserUsed>
      <a:Videowall_NEXMPV10PlayerUsed>123</a:Videowall_NEXMPV10PlayerUsed>
      <a:Videowall_NEXMPV12PlayerUsed>123</a:Videowall_NEXMPV12PlayerUsed>
      <a:Videowall_NEXMPV24PlayerUsed>123</a:Videowall_NEXMPV24PlayerUsed>
      <a:Videowall_NEXMPV5PlayerUsed>123</a:Videowall_NEXMPV5PlayerUsed>
      <a:Videowall_NEXMPV6PlayerUsed>123</a:Videowall_NEXMPV6PlayerUsed>
    </a:License>
    <a:Name>String</a:Name>
    <a:OwnerId>123</a:OwnerId>
    <a:Registration>
      <a:Company>String</a:Company>
      <a:ContactNo>String</a:ContactNo>
      <a:Email>String</a:Email>
      <a:FirstName>String</a:FirstName>
      <a:LastName>String</a:LastName>
      <a:RegistrationEmail>String</a:RegistrationEmail>
      <a:TempPassword>String</a:TempPassword>
    </a:Registration>
    <a:Status>Deleted</a:Status>
    <a:Type>Server</a:Type>
  </Account>
</AccountResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Account":{
		"APIKey":"11111111-1111-1111-1111-111111111111",
		"CloudGuid":"String",
		"CreatedDate":"\/Date(1420469130279)\/",
		"DateCommenced":"\/Date(1420469130279)\/",
		"DateExpired":"\/Date(1420469130279)\/",
		"GroupId":123,
		"Guid":"11111111-1111-1111-1111-111111111111",
		"HomeNetworkId":123,
		"Id":123,
		"License":{
			"ApplicationUsed":123,
			"ContentSizeUsed":0,
			"Continent":7,
			"DMPPlayerUsed":123,
			"Duration":123,
			"Edition":2,
			"Feature":8,
			"Language":"String",
			"MaxApplications":123,
			"MaxBandwidth":123,
			"MaxDMPPlayers":123,
			"MaxNetworks":123,
			"MaxPlayers":123,
			"MaxSmartHubs":123,
			"MaxTotalContentSize":123,
			"MaxUsers":123,
			"MaxVideowall_NEXMPV10Players":123,
			"MaxVideowall_NEXMPV12Players":123,
			"MaxVideowall_NEXMPV24Players":123,
			"MaxVideowall_NEXMPV5Players":123,
			"MaxVideowall_NEXMPV6Players":123,
			"NetworkUsed":123,
			"PlayerUsed":123,
			"SmartHubUsed":123,
			"TimeZone":"String",
			"UserUsed":123,
			"Videowall_NEXMPV10PlayerUsed":123,
			"Videowall_NEXMPV12PlayerUsed":123,
			"Videowall_NEXMPV24PlayerUsed":123,
			"Videowall_NEXMPV5PlayerUsed":123,
			"Videowall_NEXMPV6PlayerUsed":123
		},
		"Name":"String",
		"OwnerId":123,
		"Registration":{
			"Company":"String",
			"ContactNo":"String",
			"Email":"String",
			"FirstName":"String",
			"LastName":"String",
			"RegistrationEmail":"String",
			"TempPassword":"String"
		},
		"Status":4,
		"Type":3
	}
}