Create Data Type
createDataType Mutation
Last updated
Was this helpful?
createDataType Mutation
Last updated
Was this helpful?
Was this helpful?
mutation {
createDataType(
input: {
name: "Premium Product",
slug: "premium_product",
description: "Schema for premium products with extended attributes",
entity: "item",
default: false,
jsonSchema: "{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"description\":{\"type\":\"string\"},\"premium_features\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"warranty_period\":{\"type\":\"integer\"},\"warranty_unit\":{\"type\":\"string\",\"enum\":[\"days\",\"months\",\"years\"]}},\"required\":[\"name\",\"premium_features\",\"warranty_period\",\"warranty_unit\"]}"
}
) {
id
name
slug
description
entity
default
jsonSchema
}
}