Ana içeriğe geç

createICollectionRow

Koleksiyonda bir kayıt oluşturun

IntegrationCollections.createICollectionRow(marker, body, langCode)

const body = {
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
}
}
const result = await IntegrationCollections.createICollectionRow('test_collection', body);
Şema

marker:* string
Koleksiyon metin tanımlayıcısı
örnek: collection1

body:* ICollectionFormObject
Bir kayıt oluşturmak için nesne
örnek:

{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Koleksiyon tanımlayıcısı"
}
]
}
}

langCode: string
Dil kodu
örnek: en_US

Örnek dönüş:

{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
}
}
Şema

formIdentifier: string
Sipariş depolama ile ilişkilendirilmiş form nesnesinin metin tanımlayıcısı
örnek: collection_form

formData: FormDataLangType
Koleksiyona ekli form tarafından gönderilen veriler
örnek:

{
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "İsim"
}
]
}

.