Categories for AddRequests: Create (New Location) throwing 400

Hi all,

I’m using the Yext API to create a new location entity with a service. With the recent changes in how the categories are sent via json, I’m encountering an error when using the AddRequest:Create (New Location) end point.

In the request, I have a newEntityData object with the new categories format of:
“categories”: { “yext”: [ “categoryId”, “categoryId2” ] }

(The categories above being the actual numerical value of the category retrieved using the Categories: List endpoint. Also, I ensured the category being sent was selectable, and opt-in was available for the location type)

When making the request I’m getting a 404 error with the response "“Invalid entity field categories”. I’ve tried creating entities with the same categories format with the Entities: Create endpoint as well as the Entities: Update endpoint and didn’t receive any error.

I ensured my request json formatting was exactly the same using the app logs in my sandbox environment.

Has anyone encountered this or is aware of any difference I need to be doing when using the different API endpoints for the categories field?

Hope to hear a response soon!

Best,
Claudia