createGlobal
Create a global content type in Payload CMS by defining its slug, fields, versions, and optionally endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoints | No | One of the allowed types | |
| fields | Yes | Array of field configurations | |
| flattenedFields | Yes | Fields in the database schema structure Rows / collapsible / tabs w/o name `fields` merged to top, UIs are excluded | |
| slug | Yes | ||
| versions | Yes |