Examples > PUT


curl http://api-beta.fasteignir.is/properties/7972.json \
  -u root:some_password \
  -H "Content-type: application/json" \
  -X PUT \
  -d @/dev/stdin << EOF
{
  "property": {
    "street_name": "Tabby road",
    
    "property_pictures_attributes": [
      {
        "url": "http://example.org/eignir/abby/ad-framan.jpg",
        "title": "Að framan"
      },
      {
        "url": "http://example.org/eignir/abby/planid.jpg",
        "title": "Nýtt plan, planið sópað vikulega"
      },
      {
        "url": "http://example.org/eignir/abby/parket.jpg",
        "title": "Nýlegt parket"
      },
      {
        "url": "http://example.org/eignir/abby/kitchen.jpg",
        "title": "Nýtt eldhús og uppþvottavélin fylgir með..."
      },
      {
        "url": "http://example.org/eignir/abby/svalir.jpg",
        "title": "Suðaustur svalir"
      }
    ]
  }
}
EOF
© 2013 Hugsandi Menn / Think Software.