> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hawkings.education/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a SCORM package

> Generate a SCORM 1.2 or 2004 zip from a cohort. Async.

## Body

<ParamField body="cohort_id" type="string" required />

<ParamField body="version" type="enum" default="2004">`1.2` | `2004`.</ParamField>
<ParamField body="runtime_base_url" type="string">Override the runtime's API target. Defaults to `https://api.hawkings.education`.</ParamField>

## Examples

<CodeGroup>
  ```ts TypeScript theme={null}
  const pkg = await hk.scorm.create({ cohort_id: "coh_123", version: "2004" });

  const ready = await hk.poll(
    () => hk.scorm.retrieve(pkg.id),
    { until: p => p.status === "ready" },
  );
  ```

  ```php PHP theme={null}
  $pkg = $hk->scorm->create(['cohort_id' => 'coh_123', 'version' => '2004']);

  $ready = $hk->poll(
      fn () => $hk->scorm->retrieve($pkg->id),
      ['until' => fn ($p) => $p->status === 'ready'],
  );
  ```
</CodeGroup>

## Returns

A [ScormPackage](/api-reference/scorm/object) in `status: "pending"`.
