GET marketing-campaigns/preview

Gets preview of a share message

Request

URL ( requires authentication )

https://api-lease.crexi.com/marketing-campaigns/preview?assetIds=assetIds[0]&assetIds=assetIds[1]&shareMessage={shareMessage}&disclaimer={disclaimer}&templateType={templateType}&imageFileId={imageFileId}&buttonColor={buttonColor}&secondButtonColor={secondButtonColor}&brokerIds=brokerIds[0]&brokerIds=brokerIds[1]&emailTitle={emailTitle}

Parameters

assetIds

Collection of integer

Required

brokerIds

Collection of integer

Broker Ids

Optional

buttonColor

string

Button color. RGB color string.

Optional

disclaimer

string

Disclaimer. 500 characters max.

Optional

emailTitle

string

Optional

imageFileId

globally unique identifier

Id of uploaded image

Optional

secondButtonColor

string

Second button color. RGB color string.

Optional

shareMessage

string

Share message. 2000 characters max.

Optional

templateType

string

Template type

Optional

Possible values are: 'SingleProperty', 'MultipleProperty1', 'MultipleProperty2', 'ImageTemplate'

Response

Details

Returns an HTTP 200 OK and message HTML preview if operation was successfull. Returns 400 Bad Request and an error message otherwise.

Data fields

Html

string

Example

JSON

{
  "Html": "sample string 1"
}