Logo
OCI NoSQL Playground API Documentation

3.4. Write a single row into the table.

PUT {{baseUrl}}/tables/:tableNameOrId/rows

Write a single row into the table.

 

Body PARAM

Key Datatype Required Description 



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
Curl
curl -X PUT 'https://nosql.region.oci.oraclecloud.com/20190828/tables/:tableNameOrId/rows' -H 'if-match: false' -H 'opc-request-id: $randomUUID' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"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\u0026y=2015\u0026plot=short\u0026r=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}'

ENDPOINTS