Campaigns

Create campaign goal

Changed on

Creates an event, subscriber-attribute, or tag-applied conversion goal on one email campaign. SMS campaigns are not supported. The attribution window defaults to 168 hours when omitted.

post/campaigns/{campaignId}/goals

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/campaigns/{campaignId}/goals
  • Auth
    HTTP bearer

Path parameters

campaignIdstring required

Request body

namestring required
descriptionstring nullable
triggerType'event' | 'attribute_change' | 'tag_added'
triggerEventNamestring nullable
triggerTagNamestring nullable
attributePathstring nullable
attributeCondition'changed' | 'changed_to' | 'changed_from_to' | 'null' nullable
attributeValuestring nullable
attributePreviousValuestring nullable
eventPropertyNamestring nullable
eventPropertyLabelstring nullable
attributionWindowHoursinteger
isActiveboolean

Response

Campaign goal created successfully

successboolean

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property //// became not nullable

    • warning

      added the new undefined enum value to the / response property for the response status

    • info

      added the new undefined enum value to the request property ////