Create or retrieve a learner by your id
Makes sure a learner exists for your own id. Creates and invites the learner the first time, and returns them on every later call, so a sync job can replay it safely. Never uses a second seat.
Scopes: learners:write
tmh learners upsert-by-external-id <externalId> [flags]
--course-id string The course to invite them to. Defaults to the organization's default course.
-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
--delivery email email (default) sends the invite email. `none` sends nothing and returns `joinUrl` for you to deliver; one of: email, none
--email string The learner's email address. (required)
-h, --help help for upsert-by-external-id
--name string The learner's full name.
--seat-policy require_available require_available fails with `409` when no seat is free; one of: require_available
--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