Actions60
- Courses Actions
- Lessons Actions
- Topics Actions
- Quizzes Actions
- Groups Actions
- Course Users Actions
- Group Users Actions
- Custom Actions
- Assignments Actions
- Essays Actions
- Questions Actions
- Group Leaders Actions
- User Course Progress Actions
- User Courses Actions
- Group Courses Actions
- User Groups Actions
Assignments → Create
AI-generatedSummary
Create a new assignment in LearnDash by specifying assignment details such as title, content, status, and associated course ID, along with grading and points options.
Inputs
- Assignment Fields — Set the assignment's details including title, content, excerpt, status (draft, publish, etc.), slug, parent course ID, approval status, points enabled, maximum points, and points awarded.
- Body (JSON) — Optionally provide a raw JSON payload for advanced cases to include additional or custom fields not exposed directly in the interface.
Output shape
a list containing the created assignment record(s) as JSON objects
The output will be returned as an array of JSON objects representing the created assignments. Typically, one item is created per execution. Errors during JSON parsing or API request will cause operation failure.
Examples
Example 1: Create a new assignment with basic fields
Fill in Assignment Fields with Title, Content, Status (e.g., 'publish'), and Course ID to associate the assignment with a course.
Example 2: Provide a custom JSON body for advanced assignment creation
Leave Assignment Fields blank and supply the entire assignment payload as a JSON string in the Body (JSON) parameter.
