RetrieveEntityType

 

CampaignService / RetrieveEntityType

 

Description: Get EntityType by ID

URL: http://{your-server-url}/api/v1/appspace/campaigns/entitytypes/{entityTypeID}

Method: GET

Token Required: True


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

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignResponse

Parameter Type
Response.EntityType Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.EntityType

Enums:
Field Name Values
CategoryType Nexus.AppSpace.Service.Contract.Model.Enums.Campaign.CategoryType Undefined = 0, Asset = 1, Client = 2, Zone = 3, Campaign = 4, Booking = 5, Site = 6, Emergency = 7

The following is an example response Xml body:
<CampaignResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" 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>
  <EntityType xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign">
    <a:CategoryType>Emergency</a:CategoryType>
    <a:Code>String</a:Code>
    <a:ColorCode>String</a:ColorCode>
    <a:Description>String</a:Description>
    <a:Id>123</a:Id>
    <a:Name>String</a:Name>
    <a:OwnerId>123</a:OwnerId>
  </EntityType>
</CampaignResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"EntityType":{
		"CategoryType":7,
		"Code":"String",
		"ColorCode":"String",
		"Description":"String",
		"Id":123,
		"Name":"String",
		"OwnerId":123
	}
}