CreateBooking

 

CampaignService / CreateBooking

 

Description: Create Booking

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

Method: POST

Token Required: True


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

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

Parameter Type Nullable
Request.Booking Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.Booking False

Response:

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

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

Enums:
Field Name Values
Priority Nexus.AppSpace.Service.Contract.Model.Enums.Campaign.Priority Lowest = 1, Low = 2, Normal = 3, High = 4, Highest = 5

The following is an example request Xml body:
<CampaignRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Booking xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign">
    <a:Code>String</a:Code>
    <a:DeletedAt>2014-04-24T17:53:43.3643313Z</a:DeletedAt>
    <a:DeletedBy>String</a:DeletedBy>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:LastUpdatedAt>2014-04-24T17:53:43.3653201Z</a:LastUpdatedAt>
    <a:LastUpdatedBy>String</a:LastUpdatedBy>
    <a:TypeId>123</a:TypeId>
    <a:BookingLoopIds xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <b:int>123</b:int>
    </a:BookingLoopIds>
    <a:CampaignId>123</a:CampaignId>
    <a:ClientId>123</a:ClientId>
    <a:Description>String</a:Description>
    <a:EndDate>2014-04-24T17:53:43.3643313Z</a:EndDate>
    <a:Name>String</a:Name>
    <a:Priority>Highest</a:Priority>
    <a:StartDate>2014-04-24T17:53:43.3643313Z</a:StartDate>
  </Booking>
</CampaignRequest>

The following is an example request Json body:
{
	"Booking":{
		"Code":"String",
		"DeletedAt":"\/Date(1398362023364)\/",
		"DeletedBy":"String",
		"Guid":"11111111-1111-1111-1111-111111111111",
		"LastUpdatedAt":"\/Date(1398362023365)\/",
		"LastUpdatedBy":"String",
		"TypeId":123,
		"BookingLoopIds":[
			123
		],
		"CampaignId":123,
		"ClientId":123,
		"Description":"String",
		"EndDate":"\/Date(1398362023364)\/",
		"Name":"String",
		"Priority":5,
		"StartDate":"\/Date(1398362023364)\/"
	}
}

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>
  <Booking xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign">
    <a:Code>String</a:Code>
    <a:CreatedAt>2014-04-24T17:53:43.3693348Z</a:CreatedAt>
    <a:CreatedBy>String</a:CreatedBy>
    <a:DeletedAt>2014-04-24T17:53:43.3693348Z</a:DeletedAt>
    <a:DeletedBy>String</a:DeletedBy>
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:Id>123</a:Id>
    <a:LastUpdatedAt>2014-04-24T17:53:43.3693348Z</a:LastUpdatedAt>
    <a:LastUpdatedBy>String</a:LastUpdatedBy>
    <a:TypeId>123</a:TypeId>
    <a:BookingLoopIds xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <b:int>123</b:int>
    </a:BookingLoopIds>
    <a:CampaignId>123</a:CampaignId>
    <a:ClientId>123</a:ClientId>
    <a:Description>String</a:Description>
    <a:EndDate>2014-04-24T17:53:43.3693348Z</a:EndDate>
    <a:Name>String</a:Name>
    <a:Priority>Highest</a:Priority>
    <a:StartDate>2014-04-24T17:53:43.3693348Z</a:StartDate>
  </Booking>
</CampaignResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Booking":{
		"Code":"String",
		"CreatedAt":"\/Date(1398362023369)\/",
		"CreatedBy":"String",
		"DeletedAt":"\/Date(1398362023369)\/",
		"DeletedBy":"String",
		"Guid":"11111111-1111-1111-1111-111111111111",
		"Id":123,
		"LastUpdatedAt":"\/Date(1398362023369)\/",
		"LastUpdatedBy":"String",
		"TypeId":123,
		"BookingLoopIds":[
			123
		],
		"CampaignId":123,
		"ClientId":123,
		"Description":"String",
		"EndDate":"\/Date(1398362023369)\/",
		"Name":"String",
		"Priority":5,
		"StartDate":"\/Date(1398362023369)\/"
	}
}