kv_cas
Compare-and-swap a KV key. If the stored value equals expected_value, write new_value; otherwise return an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| slug | Yes | ||
| new_value | Yes | ||
| owner_key | No | Optional. If omitted, defaults to the owner_key resolved from the connection's `Authorization: Bearer <owner_key>` header. | |
| expected_value | Yes |