Change due date

Set a new due date on the assignments of chosen learners.

PATCH https://cotlet.dev/api/v1/workramp/trainings/{training_id}/due-date

write

Edits the due date of each learner row, as the drop-down arrow in the assignments table does, and returns the old and new dates. It reaches nobody directly and one more call restores the old date, so it does not wait for your OK. WorkRamp sends its reminders from the new date.

Parameters

Parameters: change_due_date
NameTypeDescription
training_id string required string Training ID from list_trainings.
learner_ids string[] required string[] Learner IDs from list_learners or list_assignments.
due_date string required string New due date as an ISO date.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/workramp/trainings/trn_7a21c4/due-date \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"learner_ids":["usr_31f0a2","usr_8b44e9"],"due_date":"2026-11-30"}'
Python
result = client.call("workramp", "change_due_date", {"training_id":"trn_7a21c4","learner_ids":["usr_31f0a2","usr_8b44e9"],"due_date":"2026-11-30"})
Node.js
const result = await cotlet.call('workramp', 'change_due_date', {"training_id":"trn_7a21c4","learner_ids":["usr_31f0a2","usr_8b44e9"],"due_date":"2026-11-30"});
CLI
cotlet call workramp change_due_date --data '{"training_id":"trn_7a21c4","learner_ids":["usr_31f0a2","usr_8b44e9"],"due_date":"2026-11-30"}'

Example response

JSON

{
  "training": "Security Awareness 2026",
  "changed": [
    {
      "learner_id": "usr_31f0a2",
      "from": "2026-10-13",
      "to": "2026-11-30"
    },
    {
      "learner_id": "usr_8b44e9",
      "from": "2026-10-20",
      "to": "2026-11-30"
    }
  ]
}

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.