#jorge.heredia

1 messages · Page 1 of 1 (latest)

uncut zenithBOT
primal hawk
#

hello, let me check, one sec

sullen void
#

tnx!

primal hawk
#

you simply set a new metadata hash, so e.g. if you had

a: 1
b: 2
c: 3

and you wanted to remove a

you just update the object's metadata with the same hash without the keys you don't want

sullen void
#

We tried this way, by only updating the key a as null. Is this incorrect?

primal hawk
#

by only updating the key a as null

no you misunderstood, pls re-read my answer

#

you pass the entire new metadata hash without the key you don't want

#

you pass

b: 2
c: 3
sullen void
#

Okay, we'll try in this way.

primal hawk
#

ah wait one sec

#

think I made an error in my repro

#

ah sorry I'm wrong, there was an error in my repro

#

give me a min

sullen void
#

I appreciate it!

primal hawk
#

ah got it

sullen void
#

The goal for us is to delete all these keys (a) from the set of metadata fields, and prevent it to appear in the list when you want to add new fields from the dashboard.

primal hawk
#

so to delete/unset something in the API, you pass "" as the value.

So what you need is
1/ first unset the entire metadata to clear it by passing
metadata: ""

2/ then, pass the "new" metadata you want.