updateICollectionRow
Edit a record in the 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);
Schema
marker: string
text identifier of the collection
example: test_collection
id: number
row id
example: 10
body: object
Object for updating a record in the collection
example:
{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
}
langCode: string
language code
example: en_US
Example return:
{
"formIdentifier": "collection_form",
"formData": {
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Name"
}
]
}
}
Schema
formIdentifier: string
Text identifier of the form object attached to the order storage
example: collection_form
formData: FormDataLangType
Data submitted by the form attached to the collection
example:
{
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Name"
}
]
}