# Cannot create custom objectId via rest API

**URL:** <https://community.parseplatform.org/t/cannot-create-custom-objectid-via-rest-api/1301>\
**Category:** REST API\
**Created:** [February 10, 2021, 8:00am UTC](https://community.parseplatform.org/t/cannot-create-custom-objectid-via-rest-api/1301 "2021-02-10T08:00:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugene](https://community.parseplatform.org/user_avatar/community.parseplatform.org/eugene/32/341_2.png) [@eugene](https://community.parseplatform.org/u/eugene)\
**Post date:** [February 10, 2021, 8:00am UTC](https://community.parseplatform.org/t/cannot-create-custom-objectid-via-rest-api/1301/1 "2021-02-10T08:00:19Z")

</div>

Hello!

I’ve been trying to create a new object with a custom objectID via rest API, with the body something like:

```auto
{
  requests: [
    {
      path: "/parse/classes/UserInfo"
      method: "POST",
      body: {
        objectId: "1337",
        gamesWon: 2
    }
  ]
}

```

But i’m getting an error stating that “objectId is an invalid field name.”. I read on [Allow saving with custom objectId · Issue #1097 · parse-community/Parse-SDK-JS · GitHub](https://github.com/parse-community/Parse-SDK-JS/issues/1097) that custom objectIds are available via rest API, and was wondering if I was doing something wrongly?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [February 11, 2021, 4:57am UTC](https://community.parseplatform.org/t/cannot-create-custom-objectid-via-rest-api/1301/2 "2021-02-11T04:57:30Z")

</div>

Have you enabled custom object id in your parse server using `allowCustomObjectId` option?
