WebsitePublisher icon

WebsitePublisher

Build and manage AI-powered websites via WebsitePublisher.ai. Create pages, manage data entities, upload assets, capture leads, configure forms, and execute integrations.

Actions26

Entity → Create

AI-generated

Summary

Create a new data entity schema by specifying its singular name, plural endpoint name, and property definitions.

Inputs

  • Entity Name (required) — Singular name for the entity, lowercase with letters, numbers, or underscores only (e.g., 'blogpost').
  • Plural Name (required) — Plural name for the REST endpoint (e.g., 'blogposts'), used in record URLs.
  • Properties (JSON) (required) — JSON array defining the entity's properties with types (varchar, text, int, datetime, tinyint), lengths, and required flags. Reserved property names: id, created_at, updated_at.

Output shape

The operation returns the API response for the created entity, typically an object representing the new entity schema.

There is no explicit pagination or batch behavior for this operation. Errors will be returned if required fields are missing or if the entity name is invalid.

Examples

Example 1: Create a blogpost entity

Set 'Entity Name' to 'blogpost', 'Plural Name' to 'blogposts', and 'Properties (JSON)' to specify fields like title (varchar), content (text).

Links

Discussion