Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://stackoverflow.com/questions/18611903/how-to-pass-payload-via-json-file-for-curl

curl -v http://server/api/v1/places.json -d @filename.json --header "Content-Type: application/json"

filename.json

{
    "subject":"My subject",
    "description": {
        "format": "textile",
        "raw": "My raw @textile@ formatted description. _Bye guys!_"
    },
    "_links": {
        "type": {"href":"/api/v3/types/1"},
        "status":{"href":"/api/v3/statuses/1"},
        "priority":{"href":"/api/v3/priorities/8"}
    }
}

  • No labels