Skip to content

create_model

Create a private-by-default draft model with explicit anonymous read/create policy.

{
"additionalProperties": false,
"properties": {
"anonymous_create": {
"default": false,
"title": "Anonymous Create",
"type": "boolean"
},
"anonymous_read": {
"default": false,
"title": "Anonymous Read",
"type": "boolean"
},
"application_id": {
"title": "Application Id",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Icon"
},
"idempotency_key": {
"title": "Idempotency Key",
"type": "string"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Label"
},
"name": {
"title": "Name",
"type": "string"
},
"plural_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Plural Label"
},
"settings": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Settings"
}
},
"required": [
"application_id",
"name",
"idempotency_key"
],
"title": "create_modelArguments",
"type": "object"
}
{
"description": "Schema for model detail responses including fields.",
"properties": {
"applicationId": {
"format": "uuid",
"title": "Applicationid",
"type": "string"
},
"createdAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"draftDiffersFromPublished": {
"default": false,
"title": "Draftdiffersfrompublished",
"type": "boolean"
},
"draftSchemaVersion": {
"title": "Draftschemaversion",
"type": "integer"
},
"fields": {
"items": {
"description": "Schema for field data in responses.",
"properties": {
"createdAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"defaultValue": {
"title": "Defaultvalue"
},
"id": {
"format": "uuid",
"title": "Id",
"type": "string"
},
"isRequired": {
"title": "Isrequired",
"type": "boolean"
},
"isUnique": {
"title": "Isunique",
"type": "boolean"
},
"label": {
"title": "Label",
"type": "string"
},
"modelId": {
"format": "uuid",
"title": "Modelid",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"position": {
"title": "Position",
"type": "integer"
},
"settings": {
"additionalProperties": true,
"title": "Settings",
"type": "object"
},
"tenantId": {
"format": "uuid",
"title": "Tenantid",
"type": "string"
},
"type": {
"title": "Type",
"type": "string"
},
"updatedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"workspaceId": {
"format": "uuid",
"title": "Workspaceid",
"type": "string"
}
},
"required": [
"id",
"tenantId",
"workspaceId",
"modelId",
"name",
"label",
"type",
"isRequired",
"isUnique",
"position"
],
"title": "FieldResponse",
"type": "object"
},
"title": "Fields",
"type": "array"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"id": {
"format": "uuid",
"title": "Id",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"pluralLabel": {
"title": "Plurallabel",
"type": "string"
},
"publishedSchemaVersion": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Publishedschemaversion"
},
"schemaState": {
"title": "Schemastate",
"type": "string"
},
"settings": {
"additionalProperties": true,
"title": "Settings",
"type": "object"
},
"tenantId": {
"format": "uuid",
"title": "Tenantid",
"type": "string"
},
"updatedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"workspaceId": {
"format": "uuid",
"title": "Workspaceid",
"type": "string"
}
},
"required": [
"id",
"tenantId",
"workspaceId",
"applicationId",
"name",
"label",
"pluralLabel",
"schemaState",
"draftSchemaVersion"
],
"title": "ModelDetailResponse",
"type": "object"
}