tmh, the TeachMeHIPAA CLI

tmh patch

Send a PATCH request to any API path

Synopsis

Sends a PATCH request to a path relative to the API base URL, which already ends in /v1, with the same authentication and error handling as the resource commands. Transient failures are never retried, since the change may already have been applied. A literal {orgId} in the path is replaced by the Organization your credentials are bound to.

tmh patch <path> [flags]

Examples

  tmh patch /organizations/{orgId}/learners/sub_123 -d externalId:=null --if-match '"v7"'

Options

      --content-type string   Content-Type of the body (default "application/merge-patch+json")
  -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
  -h, --help                  help for patch
      --if-match string       send If-Match with this ETag, for a conditional write
      --no-auth               send no Access token, even when logged in; public operations such as /courses never get one
      --query stringArray     query parameter as key=value; repeatable

Options inherited from parent commands

      --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

SEE ALSO