# List projects for device assignment

Canonical page: https://docs.ovok.com/api/slim/device/list-projects-for-device-assignment

`GET /v1/slim/device/assign/project`

Lists the projects you can move a device into: your own project, its parent project and its sub-projects.

**Auth:** bearer token. The caller must be a practitioner, an admin or a System Owner, and needs `Device:update`.
**Scope:** the caller's project (from the token) and its parent and sub-projects.

## Behaviour

- Each entry is `{ project: { id, name } }`. `name` is an empty string when the project has none.
- `total` is the number of projects returned.
- Read-only.

## Example

```bash
curl -X GET 'https://api.sandbox.ovok.com/v1/slim/device/assign/project' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
