Skip to content

DoCurious API Reference / types / ChallengeRequest

Interface: ChallengeRequest

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

A teacher's request for the School Admin to purchase a paid challenge for classroom use.

Remarks

Teachers cannot directly purchase paid challenges. Instead they submit a ChallengeRequest that the SA reviews. The SA can approve, deny, or add notes.

Extends

Properties

challenge?

optional challenge: Challenge

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


challengeId

challengeId: string

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


classId?

optional classId: string

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

Target class for the challenge


createdAt

createdAt: string

Defined in: types/common.types.ts:154

ISO 8601 datetime when the entity was created

Inherited from

BaseEntity.createdAt


id

id: string

Defined in: types/common.types.ts:167

Inherited from

BaseEntity.id


numberOfStudents?

optional numberOfStudents: number

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

How many students need access


reason?

optional reason: string

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

Teacher's justification for why this challenge should be purchased


requestedBy?

optional requestedBy: object

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

displayName

displayName: string

id

id: string


requestedByUserId

requestedByUserId: string

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


reviewedAt?

optional reviewedAt: string

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


reviewedBy?

optional reviewedBy: object

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

displayName

displayName: string

id

id: string


reviewedByUserId?

optional reviewedByUserId: string

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


reviewNote?

optional reviewNote: string

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

SA's note explaining the approval or denial


schoolId

schoolId: string

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


status

status: "pending" | "approved" | "denied"

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


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