# Share folder and file from API

**URL:** <https://forum.pydio.com/t/share-folder-and-file-from-api/547>\
**Category:** Development\
**Tags:** api\
**Created:** [January 25, 2018, 4:59pm UTC](https://forum.pydio.com/t/share-folder-and-file-from-api/547 "2018-01-25T16:59:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinL](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@MartinL](https://forum.pydio.com/u/MartinL)\
**Post date:** [January 25, 2018, 4:59pm UTC](https://forum.pydio.com/t/share-folder-and-file-from-api/547/1 "2018-01-25T16:59:31Z")

</div>

Hi,

I’m writing a script to migrate from Ajaxplorer 4.2.3 to the latest Pydio version.

I’m need to recreate shares (mainly folder shared with other user and file shared publicly).

I found endpoint “/workspace\_alias/share/simple\_share\_type/file+” in APIv1 but I’m wondering if:

- I can create share for any user when I logged in as admin?
- Is there equivalent action in APIv2?

Thanks

---

<div class="post-metadata">

**Author:** ![rjganesh](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rjganesh](https://forum.pydio.com/u/rjganesh)\
**Post date:** [February 15, 2019, 7:27am UTC](https://forum.pydio.com/t/share-folder-and-file-from-api/547/2 "2019-02-15T07:27:40Z")

</div>

any solution for this
