publ betaReference (MCP guide)
Open publ console

publ Reference

course_notices_apply

Writes, edits, publishes or deletes general and student notices of a class in the Course app (pApp C00007). Shows a preview first; the change runs only after confirmation. Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once.

Inputs

Field Required here Contract
target Yes object
target.seriesId Yes integer; greater than 0
target.board Yes general, students
action Yes one of: create, edit, publish, delete (by kind)
action.title Yes When action.kind is create: string
action.contentText Yes When action.kind is create: string
action.images No When action.kind is create: array; min items 1; max items 20
action.images[].imageTaskId Yes When action.kind is create: string; pattern ^[A-Za-z0-9_-]{8,80}$
action.noticeId Yes When action.kind is edit: integer; greater than 0
action.changes Yes When action.kind is edit: object
action.changes.title No When action.kind is edit: string
action.changes.contentText No When action.kind is edit: string
action.changes.images No When action.kind is edit: array; min items 1; max items 20
action.changes.images[].imageTaskId Yes When action.kind is edit: string; pattern ^[A-Za-z0-9_-]{8,80}$
action.noticeIds Yes When action.kind is publish: array; items: integer; greater than 0; min items 1; max items 100
action.isPublished Yes When action.kind is publish: boolean
action.noticeIds Yes When action.kind is delete: array; items: integer; greater than 0; min items 1; max items 100
action.confirmation Yes When action.kind is delete: DELETE_COURSE_NOTICES
confirmToken No string; pattern ^ct[a-f\d]{32}$; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute.