Skip to content

Commit 770ff9d

Browse files
authored
docs: Update ScoreApi.md
1 parent 225c2cc commit 770ff9d

File tree

1 file changed

+3
-34
lines changed

1 file changed

+3
-34
lines changed

docs/ScoreApi.md

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ import flat_api
349349
from flat_api.api import score_api
350350
from flat_api.model.score_creation import ScoreCreation
351351
from flat_api.model.score_details import ScoreDetails
352+
from flat_api.model.score_privacy import ScorePrivacy
352353
from flat_api.model.flat_error_response import FlatErrorResponse
353354
from pprint import pprint
354355
# Defining the host is optional and defaults to https://api.flat.io/v2
@@ -375,42 +376,9 @@ with flat_api.ApiClient(configuration) as api_client:
375376
body = ScoreCreation(
376377
title="title_example",
377378
privacy=ScorePrivacy("private"),
378-
collection="collection_example",
379-
google_drive_folder="google_drive_folder_example",
380-
builder_data=ScoreCreationBuilderData(
381-
score_data=ScoreCreationBuilderDataScoreData(
382-
use_tab_staff=True,
383-
use_chord_grid=True,
384-
fifths=3.14,
385-
nb_beats=3.14,
386-
beat_type=3.14,
387-
instruments=[
388-
ScoreCreationBuilderDataScoreDataInstrumentsInner(
389-
group="group_example",
390-
instrument="instrument_example",
391-
long_name="long_name_example",
392-
short_name="short_name_example",
393-
has_quarter_tone=True,
394-
),
395-
],
396-
),
397-
layout_data=ScoreCreationBuilderDataLayoutData(
398-
notes_spacing_coeff=3.14,
399-
length_unit="cm",
400-
page_height=3.14,
401-
page_width=3.14,
402-
page_margin_top=3.14,
403-
page_margin_bottom=3.14,
404-
page_margin_left=3.14,
405-
page_margin_right=3.14,
406-
),
407-
),
408379
filename="filename_example",
409380
data="data_example",
410-
data_encoding="base64",
411-
source=ScoreSource(
412-
google_drive="google_drive_example",
413-
),
381+
data_encoding="base64"
414382
) # ScoreCreation |
415383

416384
# example passing only required values which don't have defaults set
@@ -822,6 +790,7 @@ import flat_api
822790
from flat_api.api import score_api
823791
from flat_api.model.score_modification import ScoreModification
824792
from flat_api.model.score_details import ScoreDetails
793+
from flat_api.model.score_privacy import ScorePrivacy
825794
from flat_api.model.flat_error_response import FlatErrorResponse
826795
from pprint import pprint
827796
# Defining the host is optional and defaults to https://api.flat.io/v2

0 commit comments

Comments
 (0)