# Uploading a file using the api: Error Requires scope(s): \[file-manager-write\]

**URL:** <https://community.hubspot.com/t/uploading-a-file-using-the-api-error-requires-scope-s-file-manager-write/27775>\
**Category:** APIs & Integrations\
**Tags:** cms-content, developer-tools\
**Created:** [November 9, 2020, 6:12pm UTC](https://community.hubspot.com/t/uploading-a-file-using-the-api-error-requires-scope-s-file-manager-write/27775 "2020-11-09T18:12:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeanRoger](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeanroger/32/44503_2.png) [@jeanRoger](https://community.hubspot.com/u/jeanRoger)\
**Post date:** [November 9, 2020, 6:12pm UTC](https://community.hubspot.com/t/uploading-a-file-using-the-api-error-requires-scope-s-file-manager-write/27775/1 "2020-11-09T18:12:20Z")

</div>

Hello , I’m trying to upload a file using the file-manager API, and i’m getting this error code

{

“status”: “error”,

“message”: “Requires scope(s): [file-manager-write]”,

“correlationId”: “8cddddda-e507-4f28-97da-037ff060cec6”

}

I tried using axios and postman also, still getting this error

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 10, 2020, 5:50pm UTC](https://community.hubspot.com/t/uploading-a-file-using-the-api-error-requires-scope-s-file-manager-write/27775/2 "2020-11-10T17:50:02Z")

</div>

hi @jeanRoger ,

What portal are you trying to upload to?

---

<div class="post-metadata">

**Author:** ![jeanRoger](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeanroger/32/44503_2.png) [@jeanRoger](https://community.hubspot.com/u/jeanRoger)\
**Post date:** [December 14, 2020, 3:01am UTC](https://community.hubspot.com/t/uploading-a-file-using-the-api-error-requires-scope-s-file-manager-write/27775/3 "2020-12-14T03:01:44Z")

</div>

Hello, I found the solution, My account didn’t have access to the filemanager scope, after trying with a correct developer account I was able to make it work
