Skip to content

"type key of bundled types cannot be changed" for custom type #11

@mishachepi

Description

@mishachepi

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

Hello, maybe it is not a bug, but I can't update type_key (current type_key is "book") for my custom type with error:
{"status":400,"object":"error","code":"bad_request","message":"bad input: type key of bundled types cannot be changed"}
Same error when I am trying to update System type, but it is not a system type.

And also I can't get any object by this type, but type exist and objects exist:
Request:
{
limit: 1,
types: [
book
],
space_id: space_id
}
always response: {"data":[],"pagination":{"total":0,"offset":0,"limit":1,"has_more":false}}

Expected Behavior

I can update type_key and can get objects by this type.

Steps To Reproduce

  1. request to change type_key "book"

  2. fail

  3. get object by type_key "book"

  4. no objects even if they exist

I am not sure that it is reproducible, for me it is only one type for now, but maybe someone else will catch same error. I guess the solution is just create new type and move all object to new type, but maybe it is better to understand problem and fix it.

Environment

- OS: macos 15+
- Version: 0.49.2

Anything else?

I am open to provide additional information, if reqired

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions