Renames a label.
You can only call this method when authenticated as a Wix app or Wix user identity.
Label key.
key
is generated when the label is created.
It can't be modified, even if displayName
is updated.
Label to rename.
Language for localization. 2-letter language code in ISO 639-1 alpha-2 format.
Renamed label.
curl -X PATCH 'https://www.wixapis.com/contacts/v4/labels/custom.my-label' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-raw '{
"displayName": "My New Label Name"
}'
{
"label": {
"namespace": "custom",
"key": "custom.my-label",
"displayName": "My New Label Name",
"labelType": "USER_DEFINED",
"createdDate": "2020-04-20T14:02:20Z",
"updatedDate": "2020-05-20T14:06:20Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.