View Source Bonfire.Pages.Acts.Section.Upsert (Bonfire v0.9.10-classic-beta.156)

Creates a changeset for publishing a section

Epic Options:

  • :current_user - user that will create the section, required.
  • :section_attrs (configurable) - attrs to create the section from, required.
  • :section_id (configurable) - id to use for the created section (handy for creating activitypub objects with an id representing their reported creation time)

Act Options:

  • :id - epic options key to find an id to force override with at, default: :section_id
  • :as - key to assign changeset to, default: :section.
  • :attrs - epic options key to find the attributes at, default: :section_attrs.