# prov.identify.policies.createDraft

prov.identify.policies.createDraft in Node SDK. S5: save a draft version; nothing goes live until `publishVersion`.

## Signature

```ts
prov.identify.policies.createDraft(document: AnyPolicyDocument, opts?: { note?: string; idempotencyKey?: string }): Promise<PolicyVersion>
```

## Parameters

- `document` (AnyPolicyDocument)
- `opts` ({ note?: string; idempotencyKey?: string }, optional)

## Returns

`Promise<PolicyVersion>`

Runs locally, with no request to the API.
