Programs
APIs for program managament.
LookupProgram
core.LookupProgram({id=programKindId})
Load specific program kind.
- Object
id:Uuid!
id to load
- Program or Nil
LookupProgramInstance
core.LookupProgramInstance(programId)
Load a specific program instance.
programId:Uuid!
id to load
- ProgramInfo or Nil
ListCohorts
core.ListCohorts(programId)
Load the cohort list.
programId:Uuid!
id to load
- Cohort Array
ModifyProgramMembership
core.ModifyProgramMembership({...})
Add or update user program and cohort status. Either email or user id can be provided.
- Object
email: String
emailuserId: UUID
user idprogramId: UUID!
required program idcohortId: UUID
cohort idrole: String
member | trainer | observerstate: String
active | completed | graduated | incomplete | withdrawn
- ProgramInfo Array
ListActivePrograms
core.ListActivePrograms()
Load a list of all active programs.
None
- ProgramInfo Array
UserTickets
core.UserTickets({...})
Retrieve tickets for a specific user. Tickets represent a right to participate in a program.
- Object
userId: UUID
user idstate
ready | consumed | canceled
- ProgramTicket Array
ProgramChildList
core.ProgramChildList("..id..")
Returns the list of program kind definitions that are children of the provided id.
id: UUID
program kind id
- ProgramKind Array
ProgramsAfter
core.ProgramChildList({...})
Returns the available programs after a specific start date orderd by start descending.
- Object
kind: UUID
program kindafter: LocalDate
date that the next program should start on or after
- ProgramInfo Array
UpdateUserCohortState
core.UpdateUserCohortState({...})
Update the state of a program participation for a user.
- Object
userId: UUID
userprogramId: UUID
programcohortId: UUID
cohortstate
: active | completed | graduated | incomplete | withdrawn | dropped | refundedcomments: String
commentsstateDetail: String
detail
- Boolean result
UpdateUserProgramDate
core.UpdateUserProgramDate({...})
Update the state of a program participation for a user.
- Object
userId: UUID
userprogramId: UUID
programcohortId: UUID
cohortdateKind
stoppedAt | flaggedAtdate:Date
date in YYYY-MM-DD format
- Boolean result
ConfirmCohort
core.ConfirmCohort({...})
Create or confirm a cohort based on program and name
- Object
programId: UUID
programcohortName: String
cohort name to search for
- id of cohort
SyncCohort
core.SyncCohort({...})
Sync cohort with query. The mode specifies whether to only include existing members or to add new members to the program based on the query. Closed will just move existing users within cohorts while open will also add users that do not exist.
- Object
programId: UUID
programcohortId: UUID
cohortquery: String
user query to syncrole
member | trainer | observermode
open | closed
- record count modified
CreateProgramTicket
core.CreateProgramTicket({...})
Create program ticket allowing user to join program by consuming ticket. Provide user id or email.
- Object
userId: UUID
useremail: String
emailprogramKindId: UUID
programexternalId: UUID
optional id of purchased itemsku: String
SKUbaseSku: String
base SKU
- record count modified
ListClosingParticipants
(pending)
Program Join
core.ProgramJoin({...})
Join a user to a program
- Object
userId: UUID
userprogramId: UUID
emailprogramKindId: UUID
programstartDate: Date
start date (for open programs)start: String
open | fixed
- Result
Obsolete
The following functions can now be accomplished with the program and participant query languages.
- ListUserPrograms
- ListPrograms
- UserFuturePrograms
- UserActivePrograms