Create Enroll Action
Changed onBulk-enroll a collection of contacts into course sections. Pass course_ids to enroll in every section of those courses, or section_ids for specific sections (or both). The action runs asynchronously — poll the returned record with GET /api/v2/contacts/enroll_actions/{id} to track progress via target_count and performed_count. Exactly one target selection must be supplied: stable_id, stored_filter_id (alias filter_id), target_ids, or target_all. Returns 422 if none is provided or if the supplied value is invalid. The course_ids and section_ids you target come from the course content tree; see Reading back a course in the Courses Skill.
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
Request body
Example request
{
"contacts_enroll_action": {
"contacts_enroll_action": {
"course_ids": [
"QwdWoj"
],
"stored_filter_id": "7"
}
}
}Response
Created
Example response
{
"id": 1,
"public_id": "aB3cD4",
"workspace_id": 42000,
"course_ids": [
4
],
"section_ids": [
8
],
"filter_id": 7,
"target_all": false,
"target_ids": [],
"target_count": 200,
"performed_count": 50,
"created_by_id": 5,
"scheduled_for": null,
"started_at": "2025-01-01T00:01:00.000Z",
"completed_at": null,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:01:00.000Z"
}Changes
- info
for the
pathrequest parameterworkspace_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 - info
added the optional property
to the response with the status
- info