Renames an extended field.
You can only call this method when authenticated as a Wix app or Wix user identity.
Extended field key.
When accessing contact data,
extended field data is available at extendedFields[key]
.
For example, if the key is "custom.notes",
the value can be accessed at extendedFields["custom.notes"]
.
key
is generated when the extended field is created
and can't be modified, even if displayName
changes.
Extended field to rename.
Renamed extended field.
curl -X PATCH 'https://www.wixapis.com/contacts/v4/extended-fields/custom.my-field'
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-binary '{
"name": "My New Field Name"
}'
{
"namespace": "custom",
"key": "custom.my-field",
"displayName": "My New Field Name",
"dataType": "TEXT",
"fieldType": "USER_DEFINED",
"createdDate": "2019-10-10T12:30:56Z",
"updatedDate": "2020-05-10T07:14:59Z"
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.