Peer and Synchronous=false

Good Day All,
I am trying to send via Peering a study within a Lua script. I find when doing this, the job runs and any REST API queries and the web are inaccessible during the upload. I want to send via Asynchronous but don’t have it down correctly. If anyone can help, I know it is just an easy JSON formatting issue:

curl --request POST
–url http://localhost:8042/peers/TRANSFER/store
–header ‘content-type: application/json’
–data ‘{“27d4dec8-f5e83913-64e47350-8a3d5f1b-6d85471e”,“Synchronous”:false}’

Hello Bryan

Could you please post the curl and/or Orthanc reply and errors ?

Hi Brian,

You’re json is indeed not valid. You’re missing the “Resources” key:

curl --request POST
–url http://localhost:8042/peers/TRANSFER/store
–header ‘content-type: application/json’
–data ‘{ “Resources” : [“27d4dec8-f5e83913-64e47350-8a3d5f1b-6d85471e”],“Synchronous”:false}’

Beauty, thanks!