Aller au contenu principal

updateICollectionRow

Modifier un enregistrement dans la collection

IntegrationCollections.updateICollectionRow(marker, body, langCode)

const body = {
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
}
const result = await IntegrationCollections.updateICollectionRow('test_collection', body);
Schéma

marker: chaîne
identifiant textuel de la collection
exemple : test_collection

id: nombre
id de la ligne
exemple : 10

body: objet
Objet pour mettre à jour un enregistrement dans la collection
exemple :

{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
}

langCode: chaîne
code de langue
exemple : en_US

Exemple de retour :

{
"formIdentifier": "collection_form",
"formData": {
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Name"
}
]
}
}
Schéma

formIdentifier: chaîne
Identifiant textuel de l'objet formulaire attaché au stockage de la commande
exemple : collection_form

formData: FormDataLangType
Données soumises par le formulaire attaché à la collection
exemple :

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

.