Ana içeriğe geç

updateICollectionRow

Koleksiyondaki bir kaydı düzenleyin.

Açıklama

Bir ICollectionRow nesnesine çözülmekte olan bir Promise döndürür.

IntegrationCollections.updateICollectionRow(

marker, id, body, langCode

);

Parametreler şeması

Şema

marker(zorunlu): string
Koleksiyonun metin tanımlayıcısı
örnek: "collection1"

id(zorunlu): number
Koleksiyondaki satır tanımlayıcısı
örnek: 12

body(zorunlu): object
Koleksiyondaki bir kaydı güncellemek için nesne
örnek:

{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Koleksiyon işareti"
}
]
}
}

langCode: string
Dil kodu. Varsayılan: "en_US"
örnek: "en_US"

Örnekler

Minimal örnek

const body = {
"formIdentifier": "collection-form",
"formData": [
{
"marker": "collection_marker",
"type": "string"
"value": "Koleksiyon işareti"
}
]
};

const response = await IntegrationCollections.createICollectionRow("test_collection", 12, body);

Örnek yanıt

{
"id": 461,
"createdDate": "2025-09-30T20:32:44.573Z",
"updatedDate": "2025-09-30T20:32:44.691Z",
"collectionId": 1,
"langCode": "en_US",
"formData": [
{
"marker": "c_marker",
"type": "string",
"value": "Değer güncellendi"
}
],
"entityType": null,
"entityId": null,
"formIdentifier": "collection_form"
}

Yanıt şeması

Şema: ICollectionRow

id: number
Nesne tanımlayıcısı.
örnek: 1

createdDate: string
Kayıt oluşturulma tarihi.
örnek: "2023-01-01T00:00:00Z"

updatedDate: string
Kayıt son güncelleme tarihi.
örnek: "2023-01-02T00:00:00Z"

collectionId: number | null
Koleksiyon satırı ile ilişkili collectionId.
örnek: "product", "order", "vs"

formData: ICollectionFormData[]
Koleksiyon satırı ile ilişkili form veri nesneleri dizisi.
örnek:

[
{
"marker": "name_1",
"type": "string",
"value": "Değer"
}
]

entityType: string | null
Koleksiyon satırı ile ilişkili varlık türü.
örnek: "product", "order", "vs"

entityId: number | null
Koleksiyon satırı ile ilişkili varlık tanımlayıcısı.
örnek: 12345

attributeSetIdentifier: string | null
Koleksiyon satırına ekli form tarafından kullanılan nitelik setinin tanımlayıcısı veya geçerli değilse null.
örnek: "attributeSet1" veya null

total: string
Toplam sayısı.
örnek: "1"