John

John

  • 1.3k
  • 928
  • 108.3k

How to call a curl url or json

Jul 21 2017 7:08 AM
curl -X POST -H "Authorization: Bearer kEnG562yz5bhE9igXf2YTcZ2bu0z" -H "Content-Type: application/vnd.api+json" -d '{ "jsonapi": { "version": "1.0" }, "data": { "type": "versions", "attributes": { "name": "drawing.dwg", "extension": { "type": "versions:autodesk.core:File", "version": "1.0" } }, "relationships": { "item": { "data": { "type": "items", "id": "urn:adsk.wipprod:dm.lineage:AeYgDtcTSuqYoyMweWFhhQ" } }, "storage": { "data": { "type": "objects", "id": "urn:adsk.objects:os.object:wip.dm.prod/980cff2c-f0f8-43d9-a151-4a2d916b91a2.dwg" } } } } }' "https://developer.api.autodesk.com/data/v1/projects/a.project.id.xyz/versions"
 
How to call dis?? m very much new to curl

Answers (5)