You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submission owner can read and request to change this value.
217
242
218
243
Example: Retrieve and update a SubmissionStatus.
244
+
245
+
This example demonstrates the basic workflow of retrieving an existing submission status, updating its fields, and storing the changes back to Synapse.
219
246
```python
220
247
from synapseclient import Synapse
221
248
from synapseclient.models import SubmissionStatus
@@ -224,7 +251,7 @@ class SubmissionStatus(
224
251
syn.login()
225
252
226
253
# Get a submission status
227
-
status = SubmissionStatus(id="syn123456").get()
254
+
status = SubmissionStatus(id="9999999").get()
228
255
229
256
# Update the status
230
257
status.status = "SCORED"
@@ -491,14 +518,15 @@ async def get_async(
491
518
ValueError: If the submission status does not have an ID to get.
492
519
493
520
Example: Retrieving a submission status by ID
521
+
494
522
```python
495
523
from synapseclient import Synapse
496
524
from synapseclient.models import SubmissionStatus
497
525
498
526
syn = Synapse()
499
527
syn.login()
500
528
501
-
status = await SubmissionStatus(id="syn1234").get_async()
529
+
status = await SubmissionStatus(id="9999999").get_async()
502
530
print(status)
503
531
```
504
532
"""
@@ -543,6 +571,7 @@ async def store_async(
543
571
ValueError: If the submission status is missing required fields.
544
572
545
573
Example: Update a submission status
574
+
546
575
```python
547
576
from synapseclient import Synapse
548
577
from synapseclient.models import SubmissionStatus
@@ -551,7 +580,7 @@ async def store_async(
551
580
syn.login()
552
581
553
582
# Get existing status
554
-
status = await SubmissionStatus(id="syn1234").get_async()
583
+
status = await SubmissionStatus(id="9999999").get_async()
0 commit comments