<%= content_type.icon %> Add an online reference to a specific <%= content_type.name.downcase %>

<% unless current_page?(api_references_path) %>

<%= link_to "Click here to read more about how online references work on Notebook.ai.", api_references_path %>

<% end %>

Endpoint

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

Example call

Example response

{ "id": 1, "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": [ { "url": "https://www.example.com/something/wow", "title": "Reference name", "description": "This is something really cool on the Internet that this <%= content_type.name.downcase %> appears in!", "reference_image": "https://www.example.com/<%= content_type.name.downcase.pluralize %>/12345.png" } ] }