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

# Import and sync assets

> Bring assets into Ravenna from a CSV file, keep them in sync with any system through Foundry functions on a schedule, or manage them with the Ravenna API.

Bring assets into Ravenna from wherever they live today. Pick the method that fits the source.

| Source | Use | Keeps assets in sync |
| - | - | - |
| A spreadsheet | [CSV import](#import-from-csv) | No, one-time |
| Jamf Pro, Fleet, Iru, Microsoft Intune, or Omnissa | [Device sync](https://docs.ravenna.ai/documentation/assets/device-sync.md) | Yes, built in |
| Any other system with an API | [Foundry and a scheduled workflow](#sync-from-any-system-with-foundry) | Yes, on your schedule |
| Your own scripts | [Asset API](#manage-assets-with-the-api) | When your script runs |

## Constraints and gotchas

* CSV import is create-only and has no upsert. Re-importing creates duplicates. It runs from the Import button on the workspace Assets tab or on an asset type's Assets tab (organization admins). Columns only map to field definitions that already exist; new asset types in the file are created without new fields and linked to the workspace the import ran from (none when run from an asset type in organization settings). Each imported row fires Asset Created.
* Built-in device sync covers only Jamf Pro, Fleet, Iru, Microsoft Intune, and Omnissa. Any other source syncs through a Foundry custom integration and a Cron-triggered workflow, in one of two flows: one Foundry function that lists the source's assets and creates or updates them in Ravenna, or a list function that outputs JSON followed by an update function that takes that JSON as its input. Foundry functions reach the asset API through `ctx.ravenna.request`; prefer the bulk endpoints (100 assets per request) and match on a stable field to avoid duplicates.
* REST API (`x-ravenna-api-token`): `GET/POST /assets`, `GET/PATCH/DELETE /assets/{id}`, `POST /assets/bulk-create` and `/assets/bulk-update` (1 to 100 per request), `POST /assets/bulk-assign` and `/assets/bulk-unassign`, `POST /assets/{id}/archive` and `/unarchive`, `GET /assets/{id}/activities`. Writes need an organization admin. Bulk requests save each asset separately, so a failed request can leave earlier assets saved. A bulk update rejects a repeated asset `id`.


## Related topics

- [Asset sync](https://docs.ravenna.ai/integrations/fleet/asset-sync.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.