profweb adlı üyeden alıntı: mesajı görüntüle
'attributes' => ([
[
'attributeId' => 338,
'attributeValueId' => $size,
],
[
'attributeId' => 343,
'attributeValueId' => 4295,
],
[
'attributeId' => 47,
'attributeValueId' => $color,
],
])
malesef aldığım hata yine aynı

düzeltme: sanırım sorun color değeri ile gönderdiğim text'de sayı olarak gönderdiğimde hata vermiyor ancak text olunca hata veriyor, ama text göndermem gerek.

[message] => Could not read JSON document: Can not deserialize value of type java.lang.Long from String "İndigo": not a valid Long value
 at [Source: java.io.PushbackInputStream@db08e7eb; line: 1, column: 908] (through reference chain: com.trendyol.supplier.api.gateway.model.request.spm.UpdateProductV2BatchRequest["items"]->java.util.ArrayList[0]->com.trendyol.supplier.api.gateway.model.request.spm.ProductV2UpdateRequest["attributes"]->java.util.ArrayList[2]->com.trendyol.supplier.api.gateway.model.request.spm.AttributeV2Request["attributeValueId"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type java.lang.Long from String "İndigo": not a valid Long value
 at [Source: java.io.PushbackInputStream@db08e7eb; line: 1, column: 908] (through reference chain: com.trendyol.supplier.api.gateway.model.request.spm.UpdateProductV2BatchRequest["items"]->java.util.ArrayList[0]->com.trendyol.supplier.api.gateway.model.request.spm.ProductV2UpdateRequest["attributes"]->java.util.ArrayList[2]->com.trendyol.supplier.api.gateway.model.request.spm.AttributeV2Request["attributeValueId"])