Skip to main content

Body_create_collector_collector__post

collector_in objectrequired
id object
anyOf
string
nameName (string)required
responseLimit object
anyOf
integer
completedResponsesCount object
anyOf
integer
surveyIdSurveyid (integer)required
typeCollectorType (string)required

Collector type enum.

Possible values: [SMS, EMAIL, WEB_LINK, WHATSAPP, WIDGET]

openDate object
anyOf
string<date-time>
closeDate object
anyOf
string<date-time>
fromEmail object
anyOf
emailEmail (string)required
name object
anyOf
string
senderId object
anyOf
string
messageText object
anyOf
string
closedMessage object
anyOf
string
showUnsubscribe object
anyOf
boolean
status object
anyOf
CollectorStatus (string)

Collector status enum.

Possible values: [OPEN, CLOSED, DRAFT, DELETED, INACTIVE, SCHEDULED, RESPONSE_LIMIT_EXCEEDED]

createdAt object
anyOf
string<date-time>
updatedAt object
anyOf
string<date-time>
dynamicParameters object
anyOf
object
isActiveIsactive (boolean)
Default value: true
isDeleted object
anyOf
boolean
buttonText object
anyOf
string
provider object
anyOf
WhatsAppProvider (string)
Constant value: glassix
templateId object
anyOf
string
phoneNumber object
anyOf
string
parameters object
anyOf
object
limitByIpLimitbyip (boolean)
Default value: true
limitByCookieLimitbycookie (boolean)
Default value: true
groupIds object
anyOf
  • Array [
  • integer
  • ]
  • customId object
    anyOf
    string
    contacts object
    anyOf
  • Array [
  • contact object
    anyOf
    id object
    anyOf
    integer
    firstName object
    anyOf
    string
    lastName object
    anyOf
    string
    email object
    anyOf
    string
    phone object
    anyOf
    string
    externalId object
    anyOf
    string
    departmentId object
    anyOf
    string<uuid>
    dynamicParameters object
    anyOf
    object
  • ]
  • rules_in object
    anyOf
  • Array [
  • id object
    anyOf
    integer
    operator object
    anyOf
    string
    isActive object
    anyOf
    boolean
    collectorId object
    anyOf
    string
    conditions object[]required
  • Array [
  • id object
    anyOf
    integer
    ruleId object
    anyOf
    integer
    value object
    anyOf
    string
    typeConditionTypes (string)required

    Possible values: [Survey Opened, Survey Completed, Survey Score Below, Survey Score Above, Survey Score Below Percentage, Survey Score Above Percentage]

  • ]
  • actions object[]required
  • Array [
  • id object
    anyOf
    integer
    ruleId object
    anyOf
    integer
    type object
    anyOf
    ActionType (string)

    Action type enum.

    Possible values: [Coupon, Email, SMS, WhatsApp, Coupon Email, Coupon SMS, Coupon WhatsApp]

    parameters object
    anyOf
    fromEmail objectrequired
    emailEmail (string)required
    name object
    anyOf
    string
    subjectSubject (string)required
    bodyBody (string)required
    recipientRecipient (string)
    Default value: surveyFiller
    couponGroupId object
    anyOf
    integer
  • ]
  • ]
  • Body_create_collector_collector__post
    {
    "collector_in": {
    "id": "string",
    "name": "string",
    "responseLimit": 0,
    "completedResponsesCount": 0,
    "surveyId": 0,
    "type": "SMS",
    "openDate": "2024-07-29T15:51:28.071Z",
    "closeDate": "2024-07-29T15:51:28.071Z",
    "fromEmail": {
    "email": "string",
    "name": "string"
    },
    "senderId": "string",
    "messageText": "string",
    "closedMessage": "string",
    "showUnsubscribe": true,
    "status": "OPEN",
    "createdAt": "2024-07-29T15:51:28.071Z",
    "updatedAt": "2024-07-29T15:51:28.071Z",
    "dynamicParameters": {},
    "isActive": true,
    "isDeleted": true,
    "buttonText": "string",
    "provider": "glassix",
    "templateId": "string",
    "phoneNumber": "string",
    "parameters": {},
    "limitByIp": true,
    "limitByCookie": true,
    "groupIds": [
    0
    ],
    "customId": "string",
    "contacts": [
    {
    "contact": {
    "id": 0,
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "phone": "string",
    "externalId": "string",
    "departmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "dynamicParameters": {}
    }
    ]
    },
    "rules_in": [
    {
    "id": 0,
    "operator": "string",
    "isActive": true,
    "collectorId": "string",
    "conditions": [
    {
    "id": 0,
    "ruleId": 0,
    "value": "string",
    "type": "Survey Opened"
    }
    ],
    "actions": [
    {
    "id": 0,
    "ruleId": 0,
    "type": "Coupon",
    "parameters": {
    "fromEmail": {
    "email": "string",
    "name": "string"
    },
    "subject": "string",
    "body": "string",
    "recipient": "surveyFiller",
    "couponGroupId": 0
    }
    }
    ]
    }
    ]
    }
    Was this page helpful?