UpdateNetwork

 

NetworkService / UpdateNetwork

 

Description: Update network

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

Method: PUT

Token Required: True


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

Portal Administrator, Account Administrator, Account Owner, Network Administrator

Rights:

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

Right Require
Network_Management Yes

Request:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Network.NetworkRequest

Parameter Type Nullable Comment
Request.Network Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.V1.Networks.Network False ParentId - must from same account

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Network.NetworkResponse

Parameter Type
Response.Network Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Networks.Network

The following is an example request Xml body:
<NetworkRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Network" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Network xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Networks">
    <a:Name>String</a:Name>
    <a:ParentId>123</a:ParentId>
  </Network>
</NetworkRequest>

The following is an example request Json body:
{
	"Network":{
		"Name":"String",
		"ParentId":123
	}
}

The following is an example response Xml body:
<NetworkResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Network" 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>
  <Network xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Networks">
    <a:AccountId>123</a:AccountId>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:Id>123</a:Id>
    <a:LastUpdate>2014-09-18T11:01:10.8708605Z</a:LastUpdate>
    <a:Name>String</a:Name>
    <a:ParentId>123</a:ParentId>
  </Network>
</NetworkResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Network":{
		"AccountId":123,
		"Guid":"11111111-1111-1111-1111-111111111111",
		"Id":123,
		"LastUpdate":"\/Date(1411038070870)\/",
		"Name":"String",
		"ParentId":123
	}
}