# MISSING\_SCOPES

**URL:** <https://community.hubspot.com/t/missing-scopes/105324>\
**Category:** APIs & Integrations\
**Tags:** php\
**Created:** [April 19, 2024, 6:43pm UTC](https://community.hubspot.com/t/missing-scopes/105324 "2024-04-19T18:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![664976](https://avatars.discourse-cdn.com/v4/letter/6/bbe5ce/32.png) [@664976](https://community.hubspot.com/u/664976)\
**Post date:** [April 19, 2024, 6:43pm UTC](https://community.hubspot.com/t/missing-scopes/105324/1 "2024-04-19T18:43:35Z")

</div>

Hi. I am working with PHP and HubSpot API. I would like to push updates from a mysql DB to hubspot.

I am able to do so with contacts and products. However, i created a custom object and when i try to run an create or update i get the error: “context”:{“requiredScopes”:[“crm.objects.custom.write”]}}],“links”:{“scopes”:“”},“category”:“MISSING\_SCOPES”}.

I checked on the Private App scope, and i do have the crm.objects.custom.write.

Scopes  
crm.objects.deals.readcrm.objects.contacts.readcrm.objects.commercepayments.readcrm.objects.contacts.writecrm.objects.custom.writecrm.objects.custom.readcrm.objects.deals.writecrm.importcrm.exporte-commerce

Can anyone point me on the correct direction please?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [April 20, 2024, 1:47am UTC](https://community.hubspot.com/t/missing-scopes/105324/2 "2024-04-20T01:47:44Z")

</div>

Hi @664976 👋

Very strange, indeed. Are you using HubSpot’s PHP [API client library](https://developers.hubspot.com/docs/api/client-libraries)? If you haven’t already, I’d also recommend triple-checking you’re authenticating with the intended Private App.

It might also be helpful to share some additional information about the API request(s) you’re making, for example: endpoint, headers, request body etc.

I hope this proves helpful. Please let me know if you have any follow-up questions.
