BatchWriteItem

POST v1/data/{project_id}/batch_write_item

Request Syntax

{
    "request_items": {
        "string": [
            {
                "delete_request": {
                    "key": {
                        "string": {
                            "B": "blob",
                            "BS": [
                                "blob"
                            ],
                            "N": "string",
                            "NS": [
                                "string"
                            ],
                            "S": "string",
                            "SS": [
                                "string"
                            ]
                        }
                    }
                },
                "put_request": {
                    "item": {
                        "string": {
                            "B": "blob",
                            "BS": [
                                "blob"
                            ],
                            "N": "string",
                            "NS": [
                                "string"
                            ],
                            "S": "string",
                            "SS": [
                                "string"
                            ]
                        }
                    },
                    "time_to_live": "number"
                }
            }
        ]
    }
}

Request Parameters

request_items
Type: String to object map
Required: Yes

Response Syntax

{
    "unprocessed_items": {
        "string": [
            {
                "delete_request": {
                    "key": {
                        "string": {
                            "B": "blob",
                            "BS": [
                                "blob"
                            ],
                            "N": "string",
                            "NS": [
                                "string"
                            ],
                            "S": "string",
                            "SS": [
                                "string"
                            ]
                        }
                    }
                },
                "put_request": {
                    "item": {
                        "string": {
                            "B": "blob",
                            "BS": [
                                "blob"
                            ],
                            "N": "string",
                            "NS": [
                                "string"
                            ],
                            "S": "string",
                            "SS": [
                                "string"
                            ]
                        }
                    },
                    "time_to_live": "number"
                }
            }
        ]
    }
}

Response Elements

unprocessed_keys
Type: String to object map

Errors

BackendInteractionException
ClusterIsNotConnectedException
NotImplementedError
ValidationError

Sample Request

{
    "request_items": {
        "Forum": [
            {
                "put_request": {
                    "item": {
                        "Name": {
                            "S": "MagnetoDB"
                        },
                        "Category": {
                            "S": "OpenStack KVaaS"
                        }
                    }
                }
            },
            {
                "put_request": {
                    "item": {
                        "Name": {
                            "S": "Nova"
                        },
                        "Category": {
                            "S": "OpenStack Core"
                        }
                    }
                }
            },
            {
                "put_request": {
                    "item": {
                        "Name": {
                            "S": "KeyStone"
                        },
                        "Category": {
                            "S": "OpenStack Core"
                        }
                    }
                }
            },
            {
                "delete_request": {
                    "key": {
                        "Name": {
                            "S": "Cinder"
                        },
                        "Category": {
                            "S": "OpenStack Core"
                        }
                    }
                }
            }
        ]
    }
}

Sample Response

{
    "unprocessed_items": {
        "Forum": [
            {
                "put_request": {
                    "item": {
                        "Name": {
                            "S": "Nova"
                        },
                        "Category": {
                            "S": "OpenStack Core"
                        }
                    }
                }
            }
        ]
    }
}