# dialog\_duplicate\_rsc

Source: https://zotonic.com/docs/1412/dialog_duplicate_rsc

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

Language: en



Open a dialog to duplicate the current [resource](/id/doc_glossary#term-resource) with a new id and title.

The required `id` argument identifies the source resource. Submitting the dialog calls `m_rsc:duplicate/3`, creates the copy as unpublished, closes the dialog, and redirects to the new resource's admin edit page.

```django
{% button text="Duplicate" action={dialog_duplicate_rsc id=id} %}
```

License: 

Attribution: 

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