The following example shows replacing a my-type native object instance with a primary key of foo:
import { primaryKeyUriString, putNativeObject } from "@contextual-io/native-object-client"
const replacedObject = await putNativeObject(
primaryKeyUriString("my-type/foo"),
{
"id": "foo",
"bar": "fizz",
},
)
Replaces a native object