academyFIVE API icon

academyFIVE API

Interact with academyFIVE API

Actions549

Course-study-programs → Assign a course study program to the course version

AI-generated

Summary

Assign a course study program to a specific course version by providing the required type and relationships data in the request body.

Inputs

  • data (required) — An object containing the 'type' string and 'relationships' object. The relationships object must include a 'course' and a 'studyProgram', each with their respective type and id strings indicating the course version and the study program to assign.

Output shape

a list of JSON objects representing the response data from the assignment request

The output is returned as a JSON array, each entry paired with the input item index. Errors appear as JSON with an error message if execution continues on failure.

Examples

Example 1: Assign a specific study program to a chosen course version

Set 'data.type' to 'courseStudyProgramAssignment' (or relevant string as per API spec). Specify 'relationships.course.data.type' and 'relationships.course.data.id' for the course version, and 'relationships.studyProgram.data.type' and 'relationships.studyProgram.data.id' for the study program being assigned.

Links

Discussion