Description: Create EntityType
URL: http://{your-server-url}/api/v1/appspace/campaigns/entitytypes
Method: POST
Token Required: True
content-type: application/json or content-type: application/xml
token: {token}
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignRequest
Parameter | Type | Nullable |
---|---|---|
Request.EntityType | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.EntityType | False |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignResponse
Parameter | Type |
---|---|
Response.EntityType | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.EntityType |
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 |
<CampaignRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <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:Name>String</a:Name> <a:OwnerId>123</a:OwnerId> </EntityType> </CampaignRequest>
{ "EntityType":{ "CategoryType":7, "Code":"String", "ColorCode":"String", "Description":"String", "Name":"String", "OwnerId":123 } }
<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>
{ "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 } }