# Solved: No longer able to post generic project files (key "not unique")

**URL:** <https://discuss.bitrise.io/t/solved-no-longer-able-to-post-generic-project-files-key-not-unique/9027>\
**Category:** Beta Testing\
**Created:** [May 16, 2019, 2:40pm UTC](https://discuss.bitrise.io/t/solved-no-longer-able-to-post-generic-project-files-key-not-unique/9027 "2019-05-16T14:40:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![passacaglia](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@passacaglia](https://discuss.bitrise.io/u/passacaglia)\
**Post date:** [May 16, 2019, 2:40pm UTC](https://discuss.bitrise.io/t/solved-no-longer-able-to-post-generic-project-files-key-not-unique/9027/1 "2019-05-16T14:40:06Z")

</div>

Prior to today I’ve been able to successfully use the API to create/upload generic project files. Currently, when I attempt to post a new generic project file my request is rejected because the key is not unique.

The [documented curl example](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#creating-and-uploading-files-to-generic-file-storage) seems to fail in the same way:

`curl -X POST “[https://api.bitrise.io/v0.1/apps/MYSLUGXXX/generic-project-files](https://api.bitrise.io/v0.1/apps/MYSLUGXXX/generic-project-files)” -H “accept: application/json” -H “Authorization: MYACCESSTOKENXXX” -H “Content-Type: application/json” -d “{ “upload\_file\_name”: “Test-File”, “upload\_file\_size”: 4865, “user\_env\_key”: “TestFile9875”}”

{“message”:“Invalid request body: TestFile9875 key is not unique in repository, please use unique keys.”}`

The Code Signing tab for my project shows an entry as a result of the curl (see screenshot)

 ![53](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/a/aa60e51b6333ba7238541444be69c7370c315777.png)

I’m assuming that provided the user\_env\_key value is unique to my app (or at least to my account) I should not be receiving this message.

Can anyone verify they endpoint is working as advertised for them? Am I missing anything?

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [May 17, 2019, 11:10am UTC](https://discuss.bitrise.io/t/solved-no-longer-able-to-post-generic-project-files-key-not-unique/9027/2 "2019-05-17T11:10:55Z")

</div>

Hi @passacaglia! Thanks for your report, the endpoint is indeed not working, a fix in on the way, should be working again shortly!

---

<div class="post-metadata">

**Author:** ![daniel.serleg](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/daniel.serleg/32/2289_2.png) [@daniel.serleg](https://discuss.bitrise.io/u/daniel.serleg)\
**Post date:** [May 17, 2019, 11:32am UTC](https://discuss.bitrise.io/t/solved-no-longer-able-to-post-generic-project-files-key-not-unique/9027/3 "2019-05-17T11:32:22Z")

</div>

Hi passacaglia,

Thank you for your remark. You got a confusing error message when you tried to upload files with unique keys.  
We have found the issue and just created a small patch.

Thank you for your patience and have a nice day,

---

<div class="post-metadata">

**Author:** ![passacaglia](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@passacaglia](https://discuss.bitrise.io/u/passacaglia)\
**Post date:** [May 17, 2019, 11:39am UTC](https://discuss.bitrise.io/t/solved-no-longer-able-to-post-generic-project-files-key-not-unique/9027/4 "2019-05-17T11:39:22Z")

</div>

Resolved! Thanks for the quick turnaround.
