pub struct SongCreate {
pub author: Option<Option<String>>,
pub category_id: i64,
pub ccli: Option<Option<String>>,
pub copyright: Option<Option<String>>,
pub name: String,
pub should_practice: Option<bool>,
pub tags: Option<Vec<String>>,
pub arrangements: Option<Vec<ArrangementCreate>>,
pub extra: Map<String, Value>,
}Expand description
A song, optionally with initial arrangements and tags. A song is the composition; arrangements describe its musical versions and are selected by event agenda items.
Fields§
Author or composer credits.
None leaves the field out, Some(None) sends null.
category_id: i64ID of an existing song category from GET /song/categories. Categories organize songs and determine access permissions. Changing it requires edit permission for both the old and the new category.
ccli: Option<Option<String>>CCLI song number, stored as text.
None leaves the field out, Some(None) sends null.
copyright: Option<Option<String>>Copyright or licensing notice.
None leaves the field out, Some(None) sends null.
name: StringSong title.
should_practice: Option<bool>Marks the song for rehearsal.
Tag names to assign. Existing tags are reused by name; missing tags are created. During update, this replaces the song’s tag set.
arrangements: Option<Vec<ArrangementCreate>>Initial musical versions. The first arrangement becomes the default unless a later item has isDefault: true.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.