# rsc\_import

Source: https://zotonic.com/docs/2502/rsc_import

URI: https://zotonic.com/id/2502

Language: en



Import model for resources exported by `m_rsc_export`.

This model handles import-preview and import operations for external resource exports. It keeps import status metadata and supports fetching raw export payloads for authenticated users.

Imports emit `#import_resource{}` before creating resources or resolving remote references. Observers can handle or skip an import; successful imports retain normal import bookkeeping and emit `#rsc_import_done{}`. See `zotonic_observer:observe_import_resource/2` for the contract. Include `zotonic_core/include/zotonic.hrl` to use the notification records.

Available Model API Paths
-------------------------

| Method | Path pattern | Description                                                                      |
| ------ | ------------ | -------------------------------------------------------------------------------- |
| `get`  | `/fetch_raw` | Fetch raw exported JSON from a remote URI provided in the payload, for authenticated users. No further lookups. |

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2502?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2502?language=en>)
