Items's Custom fields Via API

Items's Custom fields Via API

Hi,

I can't set values to Custom Fields of an Item when i create a Group Item -> Item, i'm trying with this:

"custom_fields"=>[
[
"label" => "NAME_FIELD",
"value" => VALUE1
],
[
"label" => "NAME_FIELD2",
"value" => VALUE2
]
]

Even using "id" for "label" can't set it, if someone can help me, i will appreciated it, thank you so much.