Assign training

Assign a guide, path, challenge or SCORM course to learners or a group.

POST https://cotlet.dev/api/v1/workramp/trainings/{training_id}/assign

write Confirm

Assigns the training the way the Assign button does and returns the assignment count. Learners already assigned are skipped. A scheduled assignment shows under Scheduled Assignments in the 3-dot menu. Learners are notified when they get their first piece of content. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: assign_training
NameTypeDescription
training_id string required string Training ID from list_trainings.
learner_ids string[] string[] Learner IDs. Give this or group.
group string string Group name. Give this or learner_ids.
due_date string string ISO date. Optional for guides, SCORM courses and paths.
assign_at string string ISO date and time to schedule the assignment; omit to assign now.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/workramp/trainings/training_8c41d2/assign \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("workramp", "assign_training", {"training_id":"training_8c41d2"})
Node.js
const result = await cotlet.call('workramp', 'assign_training', {"training_id":"training_8c41d2"});
CLI
cotlet call workramp assign_training --data '{"training_id":"training_8c41d2"}'

Example response

JSON

{
  "training": "Onboarding",
  "assigned": 2,
  "skipped": 0,
  "due_date": "2026-11-05",
  "scheduled_for": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.