# Use stable resource names

Source: https://zotonic.com/docs/2950/use-stable-resource-names

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

Language: en

A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.

```erlang
Id = m_rsc:rid(page_home, C).
```

Check the result before using it: that name may not exist on your site. A database ID copied from another site can identify unrelated content. Use a stable name, URI, or explicit import mapping when moving data between sites.

Reserve names for resources your application can identify consistently. Editors can still manage their titles and bodies. See <a href="/id/1278" class="doc-reference doc-reference-model"><code>model#rsc</code></a>, [Install initial content with a datamodel](/id/2955), and [Move content between sites](/id/2957).

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2950?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/2950?language=en>)
