Skip to content

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

BaseEntity.createdAt


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

BaseEntity.id


scheduledAt?

optional scheduledAt: 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?

optional sentAt: string

Defined in: types/school.types.ts:395


status

status: "completed" | "scheduled" | "sent"

Defined in: types/school.types.ts:394


survey?

optional survey: 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?

optional targetClassId: string

Defined in: types/school.types.ts:385

Target class UUID (when targetAudience is 'specific_class')


targetGradeLevel?

optional targetGradeLevel: 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

Inherited from

BaseEntity.updatedAt

DoCurious Platform Documentation