Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.54 KB

ScoreCreationCommon.md

File metadata and controls

24 lines (18 loc) · 1.54 KB

FlatApi::ScoreCreationCommon

Properties

Name Type Description Notes
title String The title of the new score. If the title is too long, the API may trim this one. If this title is not specified, the API will try to (in this order): - Use the title contained in the file (e.g. `movement-title` or `credit-words` for MusicXML files). - Use the name of the file for files from a specified `source` (e.g. Google Drive) or the one in the `filename` property - Set a default title (e.g. "New Music Score") [optional]
privacy ScorePrivacy [optional][default to 'private']
collection String Unique identifier of a collection where the score will be created. If no collection identifier is provided, the score will be stored in the `root` directory. [optional]
google_drive_folder String If the user uses Google Drive and this properties is specified, the file will be created in this directory. The currently user creating the file must be granted to write in this directory. [optional]

Example

require 'flat_api'

instance = FlatApi::ScoreCreationCommon.new(
  title: null,
  privacy: null,
  collection: null,
  google_drive_folder: null
)