<%= content_type.icon %> Create a new <%= content_type.name.downcase %>

Endpoint

POST /api/v1/<%= content_type.name.downcase.pluralize %>

Example call

<% if Rails.application.config.content_types[:premium].include?(content_type) %>
Note: Because this is a Premium page, either you (the application) or your authenticated user must have an active Premium subscription to create a new <%= content_type.name.downcase %> page.
<% end %>

Example response

{ "id": 12345, "name": "Some <%= content_type.name %>", <% unless content_type.name == Universe.name %> "universe_id": 2, <% end %> "meta": { "created_at": "2020-02-01 08:24:20 UTC", "updated_at": "2020-02-09 06:57:12 UTC" }, "categories": { "Overview": { "fields": [ { "id": 123, "label": "Description", "value": "Some Description" }, { "id": 124, "label": "Another Field", "value": "Some other value" }, ... ], }, ... }, "references": [...] }