# prov.authorize.policies

prov.authorize.policies in the Python SDK: 9 methods. A policy document at its product's own path, with the domain fixed: `attest.risk_policies` (claims_risk), `identify.policies` (traffic), `authorize.clinical_order_policies` and `attest.capture_policies`.

## Methods

### [get](https://provenanceauth.com/docs/sdks/python/authorize-policies/get.md)

```python
prov.authorize.policies.get() -> Any
```

### [set](https://provenanceauth.com/docs/sdks/python/authorize-policies/set.md)

```python
prov.authorize.policies.set(document: dict, note: Optional[str] = …) -> Any
```

### [reset](https://provenanceauth.com/docs/sdks/python/authorize-policies/reset.md)

```python
prov.authorize.policies.reset() -> Any
```

### [list_versions](https://provenanceauth.com/docs/sdks/python/authorize-policies/list-versions.md)

```python
prov.authorize.policies.list_versions(draft_group: Optional[str] = …) -> Any
```

### [get_version](https://provenanceauth.com/docs/sdks/python/authorize-policies/get-version.md)

```python
prov.authorize.policies.get_version(version: int) -> Any
```

### [simulate](https://provenanceauth.com/docs/sdks/python/authorize-policies/simulate.md)

```python
prov.authorize.policies.simulate(facts: dict, document: Optional[dict] = …, order: Optional[dict] = …) -> Any
```

A dry run of this domain's draft or active document (nothing is written).

### [backtest](https://provenanceauth.com/docs/sdks/python/authorize-policies/backtest.md)

```python
prov.authorize.policies.backtest(document: Optional[dict] = …, days: Optional[int] = …) -> Any
```

Replay this domain's draft (or active) document over the last `days` (1 to 30) of the account's own history; Pro plan and above.

### [create_draft](https://provenanceauth.com/docs/sdks/python/authorize-policies/create-draft.md)

```python
prov.authorize.policies.create_draft(document: dict, note: Optional[str] = …, idempotency_key: Optional[str] = …) -> Any
```

S5: save a draft version; nothing goes live until `publish_version`.

### [publish_version](https://provenanceauth.com/docs/sdks/python/authorize-policies/publish-version.md)

```python
prov.authorize.policies.publish_version(version: int, trial_days: Optional[int] = …, idempotency_key: Optional[str] = …) -> Any
```

S5: make a saved version live now, or run it as a trial first (`trial_days`).
