Courses::Enrollment
Create Enrollment
Changed onAdd a new enrollment
post/courses/{course_id}/enrollments
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
course_idstring required
Request body
Example request
{
"courses_enrollment": {
"courses_enrollment": {
"contact_id": 3,
"suspended": false,
"suspension_reason": "Call in to reapply after robot incident"
}
}
}Response
Created
Example response
{
"id": 1,
"public_id": "kvqOCw",
"contact_id": 3,
"course_id": 2,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"suspended": false,
"suspension_reason": "Call in to reapply after robot incident",
"current_path": "/enrollments/17cadca5ec21c9c4aede396f1e2104138b4897e43a1a974026bd0fb407556d2c65",
"origination_source_type": "Membership",
"origination_source_id": 3,
"contact": {
"id": 24359,
"public_id": "vQxYMj",
"email_address": "jane.doe@example.com",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+18005550199"
}
}Changes
- breaking
the response property
/became nullable for the status - info
for the
pathrequest parametercourse_id, the type was generalized fromintegertostring - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking