UpdateAppClasses

 

ApplicationService / UpdateAppClasses

 

Description: Update appclasses

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

Method: PUT

Token Required: True


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

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

Parameter Type Nullable Comment
Request.AppClasses Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.AppClass[] False Required field: Guid(for update)

Response:

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

Parameter Type
Response.AppClasses Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.AppClass[]

The following is an example request Xml body:
<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">
  <AppClasses xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications">
    <a:AppClass>
      <a:Active>true</a:Active>
      <a:ExtensionGuid>11111111-1111-1111-1111-111111111111</a:ExtensionGuid>
      <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
      <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:AppClass>
  </AppClasses>
</ApplicationRequest>

The following is an example request Json body:
{
	"AppClasses":[
		{
			"Active":true,
			"ExtensionGuid":"11111111-1111-1111-1111-111111111111",
			"Guid":"11111111-1111-1111-1111-111111111111",
			"Name":"String",
			"Properties":[
				{
					"Key":"String",
					"Value":"String"
				}
			]
		}
	]
}

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>
  <AppClasses xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications">
    <a:AppClass>
      <a:Active>true</a:Active>
      <a:CreatedDate>2014-11-20T17:57:37.1324905Z</a:CreatedDate>
      <a:ExtensionGuid>11111111-1111-1111-1111-111111111111</a:ExtensionGuid>
      <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
      <a:Id>123</a:Id>
      <a:LastUpdate>2014-11-20T17:57:37.1324905Z</a:LastUpdate>
      <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:AppClass>
  </AppClasses>
</ApplicationResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"AppClasses":[
		{
			"Active":true,
			"CreatedDate":"\/Date(1416506257132)\/",
			"ExtensionGuid":"11111111-1111-1111-1111-111111111111",
			"Guid":"11111111-1111-1111-1111-111111111111",
			"Id":123,
			"LastUpdate":"\/Date(1416506257132)\/",
			"Name":"String",
			"Properties":[
				{
					"Key":"String",
					"Value":"String"
				}
			]
		}
	]
}