Skip to main content

Update address field value by id

Update address field value by id

Authorizations:Token
Query Parameters
id
required
integerId value of the AddressFieldValue object
Request Body Schema:
AddressFieldValue object that needs to be added
idintegerUnique id
valuestringAdditional field value
addressFieldobject
idintegerUnique id
serviceNamestringService name for address field For example: firstname, lastname, country_code and so on. The field is named with this value in the address forms. Also the "service-name-{$serviceName}" CSS class is added to the field
viewGetterNamestringGetter name for address field (for AView::getAddressSectionData) For example: country for country_code state for state_id, custom_state The field is named with this value in the address forms. Also the "service-name-{$serviceName}" CSS class is added to the field
schemaClassstringSchema class for "Form field widget". This class will be used in form widgets Possible values are: \XLite\View\FormField\Input\Text \XLite\View\FormField\Select\Country \XLite\View\FormField\Select\Title For more information check "\XLite\View\FormField\*" class family. The '\XLite\View\FormField\Input\Text' class (standard input text field) is taken for additional fields by default.
additionalbooleanFlag if the field is an additional one (This field could be removed)
requiredbooleanFlag if the field is a required one
enabledbooleanFlag if the field is an enabled one
positionintegerPosition
address

Responses

200Success
Response schema:
Success
idintegerUnique id
valuestringAdditional field value
addressFieldobject
idintegerUnique id
serviceNamestringService name for address field For example: firstname, lastname, country_code and so on. The field is named with this value in the address forms. Also the "service-name-{$serviceName}" CSS class is added to the field
viewGetterNamestringGetter name for address field (for AView::getAddressSectionData) For example: country for country_code state for state_id, custom_state The field is named with this value in the address forms. Also the "service-name-{$serviceName}" CSS class is added to the field
schemaClassstringSchema class for "Form field widget". This class will be used in form widgets Possible values are: \XLite\View\FormField\Input\Text \XLite\View\FormField\Select\Country \XLite\View\FormField\Select\Title For more information check "\XLite\View\FormField\*" class family. The '\XLite\View\FormField\Input\Text' class (standard input text field) is taken for additional fields by default.
additionalbooleanFlag if the field is an additional one (This field could be removed)
requiredbooleanFlag if the field is a required one
enabledbooleanFlag if the field is an enabled one
positionintegerPosition
address