LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Assignments → Update

AI-generated

Summary

Updates an existing LearnDash assignment using its ID.

Inputs

  • Item ID (required) — The unique numeric ID of the assignment to update.
  • Assignment Fields — Fields to update on the assignment, including title, content, excerpt, status, slug, parent course ID, approval status, and point configuration.
  • Body (JSON) — JSON string representing additional body parameters to merge into the update request.

Output shape

a single record

Returns the updated LearnDash assignment REST API object.

Examples

Example 1: Approve a submitted assignment and assign points

Set Item ID to '789' and configure Assignment Fields with Approved Status set to 'Approved', Points Enabled set to true, Max Points to 100, and Points Awarded to 90.

Example 2: Update the status and parent course of an assignment

Set Item ID to '456' and configure Assignment Fields with Status set to 'Publish' and Course ID set to 12.

Discussion