3.4. Write a single row into the table.
PUT {{baseUrl}}/tables/:tableNameOrId/rows
Write a single row into the table.
Request Body
{"value"=>{"id"=>1, "body"=>{"Title"=>"Star Wars: The Force Awakens", "Year"=>"2015", "Rated"=>"PG-13", "Released"=>"18 Dec 2015", "Runtime"=>"135 min", "Genre"=>"Action, Adventure, Fantasy", "Director"=>"J.J. Abrams", "Writer"=>"Lawrence Kasdan, J.J. Abrams, Michael Arndt", "Actors"=>"Harrison Ford, Mark Hamill, Carrie Fisher, Adam Driver", "Plot"=>"Three decades after the defeat of the Galactic Empire, a new threat arises. The First Order attempts to rule the galaxy and only a rag-tag group of heroes can stop them, along with the help of the Resistance.", "Language"=>"English", "Country"=>"USA", "Awards"=>"N/A", "Poster"=>"", "_source"=>"http://www.omdbapi.com/?t=Star+Wars&y=2015&plot=short&r=json", "_custom_metadata"=>[{"key"=>"title", "value"=>"", "enabled"=>true}, {"key"=>"region", "value"=>"us", "enabled"=>true}, {"key"=>"language", "value"=>"", "enabled"=>true}]}}, "compartmentId"=>"{{compartment_ocid}}", "isExactMatch"=>false, "isGetReturnRow"=>false, "isTtlUseTableDefault"=>true, "timeoutInMs"=>5000}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
if-match | boolean | For optimistic concurrency control. In the PUT or DELETE call | |
for a resource, set the if-match parameter to the value of the | |||
etag from a previous GET or POST response for that resource. | |||
The resource will be updated or deleted only if the etag you | |||
provide matches the resource's current etag value. | |||
opc-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"existingValue":{"in4":{}},"existingVersion":"anim aliqua adipisicing","generatedValue":"in ","usage":{"readUnitsConsumed":38718233,"writeUnitsConsumed":-13406289},"version":"id quis ut eiusmod"}