# Batch mode link sharing

**URL:** <https://help.nextcloud.com/t/batch-mode-link-sharing/11072>\
**Category:** ℹ️ Support\
**Tags:** feature\
**Created:** [April 6, 2017, 8:53am UTC](https://help.nextcloud.com/t/batch-mode-link-sharing/11072 "2017-04-06T08:53:35Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![tazinblack](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tazinblack/32/3610_2.png) [@tazinblack](https://help.nextcloud.com/u/tazinblack)\
**Post date:** [July 17, 2017, 7:05am UTC](https://help.nextcloud.com/t/batch-mode-link-sharing/11072/7 "2017-07-17T07:05:34Z")

</div>

When I try do share via share API as mentioned above with curl I always get a

`{"message":"CSRF check failed"}`

The command I used was

`curl -u "myuser:mypassword" -X POST https://nextcloud/ocs/v1.php/apps/files_sharing/api/v1/shares -d path="globalshare/0002/pic.jpg" -d shareType=3 -d permissions=1 -d expireDate="2017-07-20"`

Any Ideas?

---

_[View the full topic](https://help.nextcloud.com/t/batch-mode-link-sharing/11072)._
