Create sermon

Create a new sermon. Returns the id and title of the new sermon.

Required permission: Full Write Sermons

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The details of the new sermon

string | null
required

The sermon title. Maximum 200 characters.

string | null

Short summary of what the sermon is about. Plain text; any HTML is stripped.

string | null

The sermon notes (HTML). Text wrapped in tags becomes a fill-in-the-blank answer in the notes viewer.

date | null

The calendar day the sermon was delivered (yyyy-MM-dd), the date shown publicly. Defaults to today in the sermon's time zone (see timeZone) when creating a sermon; required when updating one. An ISO date-time is accepted and reduced to its UTC calendar day.

date-time | null

When the sermon becomes visible online, as a UTC instant. This is the field to send to set the publish time; the read-only publishedOnDate / publishedOnTime echoed back from a read are ignored when it is present. When omitted on create, midnight of date in the sermon's time zone (see timeZone); when omitted on update, unchanged.

campuses
array of objects | null

The campuses the sermon belongs to, ordered by name; empty when it is available to every campus. On writes,
send the ids to set the campus set (an empty list means every campus); omit the property to leave the set
unchanged. A campus-limited caller can only add or remove campuses within their access and cannot change
whether the record is available to every campus.
Ignored while multi-campus is off.

campuses
organizations
array of objects | null

The organizations this record is scoped to, all their campuses now and in the future, in name order; empty
unless the record is organization-scoped (then campuses is empty). Honoured only while multi-org is
on. Omit to keep the current organizations.

organizations
primaryCampus
object | null

The campus whose time zone the sermon's publish time is entered and shown in; one of campuses,
null when the sermon is available to every campus. On writes it may be omitted: the current primary is kept
while it stays in the set, else the only selected campus, else the caller's own campus when selected, else the
first sent.
Ignored while multi-campus is off.

primaryOrganization
object | null

The organization whose time zone the sermon's publish time is entered and shown in when its organizations are in
different time zones; one of organizations. Null when the sermon is on campuses or every campus or
has one organization. Also null when no primary was chosen among its organizations; the organization with the
lowest id then gives the zone. It is taken only while the organizations are in different time zones, when a
value that is not one of them is refused; while they share a zone a value sent is ignored. On writes it may be
omitted, and sending null is the same as omitting it: the current primary is kept while it stays one of the
organizations (a copy keeps the source sermon's). An archived primary organization's zone is ignored (the
account zone applies). Honoured only while multi-org is on; null while it is off.

speaker
object | null

The sermon speaker. Provide either id or code when writing. Values come from /api/property_values/speakers/values.

tags
array of objects | null

The sermon's tags. Tags are matched by name; names that don't exist yet are created. Existing tags come from /api/property_values/sermon_tags/values.

tags
series
object | null

The series the sermon belongs to. Only id is used when writing. Values come from /api/property_values/series/values.

string | null

The full transcript text.

verses
array of objects | null

The Bible passages the sermon covers.

verses
boolean | null

Whether the sermon is set to show on the public sermons portal. Defaults to false when omitted on a write.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json