Appearance
DoCurious API Reference / types / SurveyCampaign
Interface: SurveyCampaign
Defined in: types/school.types.ts:378
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:392
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:390
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:398
ISO datetime for delayed delivery (if scheduled, not sent immediately)
schoolId
schoolId:
string
Defined in: types/school.types.ts:380
sentAt?
optionalsentAt:string
Defined in: types/school.types.ts:395
status
status:
"completed"|"scheduled"|"sent"
Defined in: types/school.types.ts:394
survey?
optionalsurvey:Survey
Defined in: types/school.types.ts:401
surveyId
surveyId:
string
Defined in: types/school.types.ts:379
targetAudience
targetAudience:
"all_students"|"all_teachers"|"specific_class"|"specific_grade"
Defined in: types/school.types.ts:383
Who should receive this survey notification
targetClassId?
optionaltargetClassId:string
Defined in: types/school.types.ts:385
Target class UUID (when targetAudience is 'specific_class')
targetGradeLevel?
optionaltargetGradeLevel:string
Defined in: types/school.types.ts:387
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