Back to All

Can I get /admin/bulk/items to respect and not delete my false and null-values?

Entering these attributes in the Onify admin GUI will respect and not modify them:

However, setting the same attributes by the api:

will not respect values with false and null and the result will be:

When storing information in two separate arrays that relate to each other like:

"group_name": [
	"Group 1",
	"Group 2",
	"Group 3",
],
"group_security_enabled": [
	true,
	false,
	true
],

and it turns out like this:

"group_name": [
	"Group 1",
	"Group 2",
	"Group 3",
],
"group_security_enabled": [
	true,
	true
],

It looks like group 1 and 2 should have true and group 3 is "undefined", which is totally wrong.
Do I have to save the booleans as strings and then convert them to booleans before using them (or checking against strings), or what do you suggest?

PS. Bulking items doesn't require you to add a tag. But creating or updating an item through the Onify admin GUI requires the tag.

I suggest to keep it consistent.