Appearance
DoCurious API Reference / types / SurveyCampaign
Interface: SurveyCampaign
Defined in: types/school.types.ts:416
A distribution campaign targeting a specific audience within a school for a Survey.
Remarks
A single survey can have multiple campaigns targeting different audiences. The platform tracks how many users received the notification and how many clicked through to the external survey URL.
Extends
Properties
clickedCount
clickedCount:
number
Defined in: types/school.types.ts:430
Number of users who clicked through to the external survey URL
createdAt
createdAt:
string
Defined in: types/common.types.ts:154
ISO 8601 datetime when the entity was created
Inherited from
distributedCount
distributedCount:
number
Defined in: types/school.types.ts:428
Number of users who received the survey notification
id
id:
string
Defined in: types/common.types.ts:167
Inherited from
scheduledAt?
optionalscheduledAt:string
Defined in: types/school.types.ts:436
ISO datetime for delayed delivery (if scheduled, not sent immediately)
schoolId
schoolId:
string
Defined in: types/school.types.ts:418
sentAt?
optionalsentAt:string
Defined in: types/school.types.ts:433
status
status:
"completed"|"scheduled"|"sent"
Defined in: types/school.types.ts:432
survey?
optionalsurvey:Survey
Defined in: types/school.types.ts:439
surveyId
surveyId:
string
Defined in: types/school.types.ts:417
targetAudience
targetAudience:
"all_students"|"all_teachers"|"specific_class"|"specific_grade"
Defined in: types/school.types.ts:421
Who should receive this survey notification
targetClassId?
optionaltargetClassId:string
Defined in: types/school.types.ts:423
Target class UUID (when targetAudience is 'specific_class')
targetGradeLevel?
optionaltargetGradeLevel:string
Defined in: types/school.types.ts:425
Target grade level (when targetAudience is 'specific_grade')
updatedAt
updatedAt:
string
Defined in: types/common.types.ts:156
ISO 8601 datetime when the entity was last modified