Closed liyawang closed 5 years ago
Header 'Content-Type: application/json is needed, such as, curl -X POST -sk -H "user: luj" -H "Authorization: Bearer $AGAVETOKEN" -H 'Content-Type: application/json' https://de.sciapps.org/workflow/${id}/update -d '{"metadata": ${plist}}'
I have already tried running it with that extra argument, and just now again. I still only get 'null' as a metadata_id
Both Xiaofei and Ivar reported that they can not update the metadata if a workflow is not finished with the -d option. The old urlencode method is working though.
Example command: curl -X POST -sk -H "user: maizecode" -H "$AGAVE_HDR" https://www.sciapps.org/workflow/${id}/update -d '{\"metadata\":${plist}}'