In the WritePolicy you have a RecordExistsAction with the following possible values:
// UPDATE means: Create or update record.
// Merge write command bins with existing bins.
UPDATE RecordExistsAction = iota
// UPDATE_ONLY means: Update record only. Fail if record does not exist.
// Merge write command bins with existing bins.
UPDATE_ONLY
// REPLACE means: Create or replace record.
// Delete existing bins not referenced by write command bins.
// Supported by Aerospike 2 server versions >= 2.7.5 and
// Aerospike 3 server versions >= 3.1.6.
REPLACE
// REPLACE_ONLY means: Replace record only. Fail if record does not exist.
// Delete existing bins not referenced by write command bins.
// Supported by Aerospike 2 server versions >= 2.7.5 and
// Aerospike 3 server versions >= 3.1.6.
REPLACE_ONLY
// CREATE_ONLY means: Create only. Fail if record exists.
CREATE_ONLY
No problem. I’d appreciate it if you could write down your stumbling blocks as a beginner to using our client and server so that we could improve upon our documentation for future users.