Skip to content

Content Type

Francis Pion edited this page Jan 15, 2025 · 2 revisions

ℹ️ Defines types for contents. Contents of the same type share the same structure (fields/properties).

⚙️ Properties

Name Type Cardinality Description
IsInvariant Boolean 1..1 A value indicating whether or not contents this type can be translated.
UniqueName String 1..1 🗝️ The unique name of the content type.
DisplayName String 0..1 The display name of the content type.
Description String 0..1 A textual description of the content type.

❔ Questions

🚧 What are example of invariant contents? Should not all contents be translatable?

🚧 What happens to contents when their associated content type is deleted?

🌐 Endpoints

Status Method URL Description
0% DELETE /api/contents/types/{id} Deletes a content type.
75% GET /api/contents/types Searches content types.
75% GET /api/contents/types/unique-name:{uniqueName} Reads a content type by unique name.
75% GET /api/contents/types/{id} Reads a content type by ID.
75% PATCH /api/contents/types/{id} Updates a content type.
75% POST /api/contents/types/ Creates a new content type.
75% PUT /api/contents/types/{id} Creates or replaces a content type.