Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.
Detailed steps to reproduce the bug
Using the Admin API (graphql) https://builder.io/api/v2/admin to create models, you are able to create models that have the same unique identifier as exsitsing models.
First create a model using the addModal() API, and then send the same call again to create another model.
Reproducible code example
mutation {
addModel(
body: {
name: "payment-method-icons"
kind: "data"
fields: [
{
type: "list"
subFields: [
{
name: "icon"
type: "file"
allowedFileTypes: ["jpeg", "png", "svg", "webp"]
}
{ type: "text", name: "altText" }
]
name: "icons"
}
]
}
) {
id
}
}