add2DoYo.pl builds this instance JSON document...
$data = qq[{
"contributors" : [
{"name" : "Walter Carlos", "contributorNameTypeId" : "9c97ac45-f339-45db-a0a7-2bd33309adb9", "contributorTypeId" : "ce203790-86a4-47db-8903-398bd189e92e"},
{"name" : "Johann Sebastian Bach", "contributorNameTypeId" : "9c97ac45-f339-45db-a0a7-2bd33309adb9", "contributorTypeId" : "8c3d717a-0036-43f0-9ff9-a5c5bd7a7c1f"},
{"name" : "Robert Moog", "contributorNameTypeId" : "9c97ac45-f339-45db-a0a7-2bd33309adb9", "contributorTypeId" : "ce203790-86a4-47db-8903-398bd189e92e"}
],
"indexTitle":"switched-on bach",
"instanceFormatIds":["727c025b-7818-47a3-a957-eddb476d1c8f"],
"instanceTypeId":"8e32450a-982b-41bd-a055-20dbd63e06aa",
"notes":[{"instanceNoteTypeId":"d6b573ba-2fe2-407a-b803-7387d0393c45","note":"Sinfonia To Cantata No. 29--Air On A G String--Two-Part Invention In F Major--Two-Part Invention In B-flat Minor--Two-Part Invention In D Minor--Jesu, Joy Of Man'\''s Desiring--Prelude And Fugue No. 7 In E-Flat Major--Prelude And Fugue No. 2 In C Minor--Chorale Prelude Wachet Auf--Brandenburg Concerto No. 3 In G Major","staffOnly":false}],
"publication":[{"publisher":"Columbia Masterworks MS 7194","place":"","dateOfPublication":"1968","role":null}],
"source":"discogs",
"subjects":[
{"value":"Sinfonia To Cantata No. 29"},
{"value":"Air On A G String"},
{"value":"Two-Part Invention In F Major"},
{"value":"Two-Part Invention In B-flat Minor"},
{"value":"Two-Part Invention In D Minor"},
{"value":"Jesu, Joy Of Man'\''s Desiring"},
{"value":"Prelude And Fugue No. 7 In E-Flat Major"},
{"value":"Prelude And Fugue No. 2 In C Minor"},
{"value":"Chorale Prelude Wachet Auf"},
{"value":"Brandenburg Concerto No. 3 In G Major"}
],
"title":"Switched-On Bach"
}];
and POSTs it to /instance-storage/instances like so:curl -s -X POST $headers -d '$data' $baseURL/instance-storage/instances
note that the JSON that is returned includes an instanceId...
{
"id" : "12ef4609-2bca-45ff-bd6d-4ec47aac42c9",
"_version" : 1,
"hrid" : "in00001600134",
"source" : "discogs",
"title" : "Switched-On Bach",
"indexTitle" : "switched-on bach",
"alternativeTitles" : [ ],
"editions" : [ ],
"series" : [ ],
"identifiers" : [ ],
"contributors" : [ {
"name" : "Walter Carlos",
"contributorTypeId" : "ce203790-86a4-47db-8903-398bd189e92e",
"contributorNameTypeId" : "9c97ac45-f339-45db-a0a7-2bd33309adb9"
}, {
"name" : "Johann Sebastian Bach",
"contributorTypeId" : "8c3d717a-0036-43f0-9ff9-a5c5bd7a7c1f",
"contributorNameTypeId" : "9c97ac45-f339-45db-a0a7-2bd33309adb9"
}, {
"name" : "Robert Moog",
"contributorTypeId" : "ce203790-86a4-47db-8903-398bd189e92e",
"contributorNameTypeId" : "9c97ac45-f339-45db-a0a7-2bd33309adb9"
} ],
"subjects" : [ {
"value" : "Sinfonia To Cantata No. 29"
}, {
"value" : "Air On A G String"
}, {
"value" : "Two-Part Invention In F Major"
}, {
"value" : "Two-Part Invention In B-flat Minor"
}, {
"value" : "Two-Part Invention In D Minor"
}, {
"value" : "Jesu, Joy Of Man's Desiring"
}, {
"value" : "Prelude And Fugue No. 7 In E-Flat Major"
}, {
"value" : "Prelude And Fugue No. 2 In C Minor"
}, {
"value" : "Chorale Prelude Wachet Auf"
}, {
"value" : "Brandenburg Concerto No. 3 In G Major"
} ],
"classifications" : [ ],
"publication" : [ {
"publisher" : "Columbia Masterworks MS 7194",
"place" : "",
"dateOfPublication" : "1968"
} ],
"publicationFrequency" : [ ],
"publicationRange" : [ ],
"publicationPeriod" : {
"start" : 1968
},
"electronicAccess" : [ ],
"instanceTypeId" : "8e32450a-982b-41bd-a055-20dbd63e06aa",
"instanceFormatIds" : [ "727c025b-7818-47a3-a957-eddb476d1c8f" ],
"instanceFormats" : [ ],
"physicalDescriptions" : [ ],
"languages" : [ ],
"notes" : [ {
"note" : "Sinfonia To Cantata No. 29--Air On A G String--Two-Part Invention In F Major--Two-Part Invention In B-flat Minor--Two-Part Invention In D Minor--Jesu, Joy Of Man's Desiring--Prelude And Fugue No. 7 In E-Flat Major--Prelude And Fugue No. 2 In C Minor--Chorale Prelude Wachet Auf--Brandenburg Concerto No. 3 In G Major",
"staffOnly" : false,
"instanceNoteTypeId" : "d6b573ba-2fe2-407a-b803-7387d0393c45"
} ],
"administrativeNotes" : [ ],
"previouslyHeld" : false,
"discoverySuppress" : false,
"statisticalCodeIds" : [ ],
"statusUpdatedDate" : "2023-10-09T18:34:14.978+0000",
"metadata" : {
"createdDate" : "2023-10-09T18:34:14.978+00:00",
"createdByUserId" : "308a01e4-1108-4ea3-aa25-8b1b32cf7643",
"updatedDate" : "2023-10-09T18:34:14.978+00:00",
"updatedByUserId" : "308a01e4-1108-4ea3-aa25-8b1b32cf7643"
},
"holdingsRecords2" : [ ],
"natureOfContentTermIds" : [ ]
}