updateICollectionRow
قم بتحرير سجل في المجموعة.
IntegrationCollections.updateICollectionRow(
marker,
body,
langCode
);
مثال بسيط
const body = {
"formIdentifier": "collection-form","formData": [{
"marker": "collection_marker","type": "string""value": "Collection marker"}]};
const value = await IntegrationCollections.createICollectionRow("test_collection", body)
مخطط المعلمات
المخطط
marker(required): string
معرف نصي للمجموعة
مثال: "collection1"
id(required): number
معرف الصف في المجموعة
مثال: 12
body(required): object
كائن لتحديث سجل في المجموعة
مثال:
{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
}
langCode: string
رمز اللغة. الافتراضي: "en_US"
مثال: "en_US"
مثال على الاستجابة
{
"id": 414,
"createdDate": "2025-07-21T09:40:07.591Z",
"updatedDate": "2025-07-21T09:40:07.721Z",
"collectionId": 1,
"langCode": "en_US",
"formData": [
{
"marker": "c_marker",
"type": "string",
"value": "Value updated"
}
],
"entityType": null,
"entityId": null,
"formIdentifier": "collection_form"
}
مخطط الاستجابة
المخطط: ICollectionRow
id: number
معرف الكائن.
مثال: 1
createdDate: string
تاريخ إنشاء السجل.
مثال: "2023-01-01T00:00:00Z"
updatedDate: string
تاريخ آخر تحديث للسجل.
مثال: "2023-01-02T00:00:00Z"
collectionId: number | null
collectionId المرتبط بصف المجموعة.
مثال: "product", "order", "etc"
formData: ICollectionFormData[]
مصفوفة من كائنات بيانات النموذج المرتبطة بصف المجموعة.
مثال:
[
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
entityType: string | null
نوع الكائن المرتبط بصف المجموعة.
مثال: "product", "order", "etc"
entityId: number | null
معرف الكائن المرتبط بصف المجموعة.
مثال: 12345
attributeSetIdentifier: string | null
معرف مجموعة الخصائص المستخدمة من قبل النموذج المرتبط بصف المجموعة، أو null إذا لم يكن ذلك قابلاً للتطبيق.
مثال: "attributeSet1" أو null
total: string
إجمالي العدد.
مثال: "1"