{ "lexicon": 1, "id": "app.rocksky.song.createSong", "defs": { "main": { "type": "procedure", "description": "Create a new song", "input": { "encoding": "application/json", "schema": { "type": "object", "required": [ "title", "artist", "album", "albumArtist" ], "properties": { "title": { "type": "string", "description": "The title of the song" }, "artist": { "type": "string", "description": "The artist of the song" }, "albumArtist": { "type": "string", "description": "The album artist of the song, if different from the main artist" }, "album": { "type": "string", "description": "The album of the song, if applicable" }, "duration": { "type": "integer", "description": "The duration of the song in seconds" }, "mbId": { "type": "string", "description": "The MusicBrainz ID of the song, if available" }, "albumArt": { "type": "string", "description": "The URL of the album art for the song", "format": "uri" }, "trackNumber": { "type": "integer", "description": "The track number of the song in the album, if applicable" }, "releaseDate": { "type": "string", "description": "The release date of the song, formatted as YYYY-MM-DD" }, "year": { "type": "integer", "description": "The year the song was released" }, "discNumber": { "type": "integer", "description": "The disc number of the song in the album, if applicable" }, "lyrics": { "type": "string", "description": "The lyrics of the song, if available" } } } }, "output": { "encoding": "application/json", "schema": { "type": "ref", "ref": "app.rocksky.song.defs#songViewDetailed" } } } } }