# prov.mandate.device_enrolments

prov.mandate.device_enrolments in the Python SDK: 4 methods. The mandate.device_enrolments methods.

## Methods

### [create](https://provenanceauth.com/docs/sdks/python/mandate-device-enrolments/create.md)

```python
prov.mandate.device_enrolments.create(display_name: str, reference: Optional[str] = …, expires_in: Optional[int] = …) -> Any
```

A link for one person to enroll their phone with a passkey (201).

Calls `POST /v1/mandate/device_enrollments`.

### [get](https://provenanceauth.com/docs/sdks/python/mandate-device-enrolments/get.md)

```python
prov.mandate.device_enrolments.get(enrollment_id: str) -> Any
```

The state and, once enrolled, `device_id`, the device to name on the person's grant.

Calls `GET /v1/mandate/device_enrollments/{id}`.

### [list](https://provenanceauth.com/docs/sdks/python/mandate-device-enrolments/list.md)

```python
prov.mandate.device_enrolments.list(status: Optional[str] = …, reference: Optional[str] = …, limit: Optional[int] = …, cursor: Optional[str] = …) -> Any
```

Calls `GET /v1/mandate/device_enrollments`.

### [revoke](https://provenanceauth.com/docs/sdks/python/mandate-device-enrolments/revoke.md)

```python
prov.mandate.device_enrolments.revoke(enrollment_id: str) -> Any
```

The link stops working and the device it enrolled is revoked.

Calls `POST /v1/mandate/device_enrollments/{id}/revoke`.
