Apache Geode CHANGELOG

PUT /geode/v1/{region}/{key1},{key2},...{keyN}

Update or insert (put) data for multiple keys in the region.

Resource URL

http://<hostname_or_http-service-bind-address>:<http-service-port>/geode/v1/{region}/{key},{key2},...{keyN}

Parameters

See PUT /geode/v1/{region}/{key}?op=REPLACE and PUT /geode/v1/{region}/{key}?op=CAS.

Example Request

Request Payload: application/json

PUT /geode/v1/orders/4,5

Accept: application/json
Content-Type: application/json
[
    {
        "@type":  "org.apache.geode.web.rest.domain.Order",
         "purchaseOrderNo": 555,
         "customerId": 5,
         "description":  "Order for 23 Corp",
         "orderDate":  "01/15/2014",
         "deliveryDate":  "02/20/2014",
         "contact":  "Jane Doe",
         "email":  "jane.doe@example.com",
         "phone":  "01-2048096",
         "items": [
            {
                 "itemNo": 321,
                 "description":  "part 21",
                 "quantity": 2,
                 "unitPrice": 49.95,
                 "totalPrice": 99.9
            }
        ],
         "totalPrice": 99.9
    },
    {
         "@type":  "org.apache.geode.web.rest.domain.Order",
         "purchaseOrderNo": 777,
         "customerId": 11,
         "description":  "Order for  MNP Corp",
         "orderDate":  "02/10/2014",
         "deliveryDate":  "02/20/2014",
         "contact":  "Trent Jones",
         "email":  "trent.jones@example.com",
         "phone":  "503-555-1221",
         "items": [
            {
                 "itemNo": 321,
                 "description":  "Product-21",
                 "quantity": 3,
                 "unitPrice": 49.95,
                 "totalPrice": 149.85
            }
        ],
         "totalPrice": 149.85
    }
]

Example Success Response

Response-payload: null

200 OK

Error Codes

Status Code Description
400 BAD REQUEST Returned if one or more of the supplied keys is an invalid format.
404 NOT FOUND Returned if the region is not found.
414 REQUEST URI TOO LONG Returned if the URI is longer than the system component can handle. Limiting the size to 2000 bytes will work for most components.
500 INTERNAL SERVER ERROR Error encountered at Geode server. Check the HTTP response body for a stack trace of the exception.