updateCustomerFormFields
Updates customer's form fields
This method sends a POST request to the updateCustomerFormFields endpoint of the Vue Storefront API Middleware. In turn, it receives data from the updateCustomerFormFields endpoint exposed by the BigCommerce API
Signature
declare function updateCustomerFormFields(
props: UpdateCustomerFormFieldsParameters,
options?: MethodOptions
): Promise<UpdateCustomerFormFieldsResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
props | Required | UpdateCustomerFormFieldsParameters | Parameter object which can be used with this method. Refer to its type definition to learn about possible properties. |
options | Optional | MethodOptions |
Returns
Returns a response with the data object containing form fields data.
Referenced Types
Examples
Updating a form field
import { sdk } from '~/sdk.config.ts';
const updateCustomerFormFieldsResponse = await sdk.bigcommerce.updateCustomerFormFields({
data: [{
name: "Test Form Field",
value: "Test Value"
}]
})