...
Code Block |
---|
$ cat site.json
{
"node_name": "DK-AAL",
"node_type": "/api/v1/node_type/site/",
"node_meta_type": "Location",
"node": {
"address": "Selma Lagerlöfsvej 300",
"area": "Aalborg",
"country": "Denmark",
"country_code": "DK",
"latitude": "57.011944",
"longitude": "9.990560",
"owner_id": "AAU",
"postarea": "Aalborg",
"postcode": "9220"
}
}
$ curl -i -H "Authorization: ApiKey apiuser:secret" -H "Content-Type: application/json" -X POST --data @site.json |
...