# Unable to push dataset to hub

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-push-dataset-to-hub%2F41705%3E%5C
**Category:** Beginners\
**Created:** [May 31, 2023, 10:35pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-push-dataset-to-hub%2F41705 "2023-05-31T22:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alchemy5](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Alchemy5](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAlchemy5)%5C
**Post date:** [May 31, 2023, 10:35pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-push-dataset-to-hub%2F41705%2F1 "2023-05-31T22:35:40Z")

</div>

When I try to push a dataset to hub using the push\_to\_hub function, I get the error “Forbidden: pass `create_pr=1` as a query parameter to create a Pull Request” even after I logged in via huggingface-cli and made sure that my access token was set to write.

---

<div class="post-metadata">

**Author:** ![CuiMuxuan](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@CuiMuxuan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FCuiMuxuan)%5C
**Post date:** [September 8, 2023, 7:44am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-push-dataset-to-hub%2F41705%2F2 "2023-09-08T07:44:47Z")

</div>

- You may need to generate a token with write permission
