Update many enrollments
Reminds, resends, cancels, renews, archives or unarchives up to 500 enrollments in one request, chosen by id or by filter. Each enrollment succeeds or fails on its own. Requires the enrollments:write scope.
–wait polls the Operation until it is done (up to –wait-timeout) and prints it; if it failed, tmh prints its problem and exits as its HTTP status would, or 7 without one.
Scopes: enrollments:write
tmh enrollments batch-by-filter [flags]
-d, --data stringArray body field as key=value (dotted keys nest, key[]=v appends, key:=<json> sends JSON), or the whole body as @file, @- for stdin, or a JSON document; repeatable. Flags override -d fields, which override the document
-h, --help help for batch-by-filter
--operation remind What to do to each enrollment: remind, `resendInvite`, `cancel`, `recertify`, `archive` or `unarchive`; one of: remind, resendInvite, cancel, recertify, archive, unarchive (required)
--select.filter.archived Archived
--select.filter.course-id string Course id
--select.filter.status string Status; one of: INVITED, EMAIL_BOUNCED, STARTED, ASSESSMENT_IN_PROGRESS, CERTIFIED, CANCELLED, EXPIRING, EXPIRED, ARCHIVED
--wait wait until the Operation is done and print it; a failed Operation exits as its HTTP status would
--wait-timeout duration how long --wait waits before giving up (default 5m0s)
--idempotency-key string Idempotency-Key for the write, instead of a generated one
--live use the "live" profile
--max-retries int times to retry a transient failure of a request that is safe to replay (default 2)
--profile string profile to use: "sandbox" (default) or "live"
--show-headers print each HTTP response's status and headers to stderr
--verbose print method, path, status, latency and request id of each HTTP attempt to stderr