Community Server/Control Panel version: Enterprise
Type of installation of Workspace (docker, deb/rpm, exe): Cloud
OS: Arch Linux
Browser version: Firefox 113
When using the custom fields api and calling the api/2.0/crm/{entityType}/customfield/{id}
I am able to change the label
with no issues when passing an empty string in the mask
but when trying to edit the mask for a select box I am getting a 500 error.
Here is the bodyData
I am passing.
{ label: "Lead Source", fieldType: 2, mask: "["Test", "Test1"]" }.
I am getting the following error:
Error: HTTP error! status: 500, message: {"status":1,"statusCode":500,"error":{"message":"Error reading JToken from JsonReader. Path '', line 0, position 0.","hresult":-2146233088,"data":{}}}
If I pass this:
{ label: "Lead Source", fieldType: 2, mask: "" }
I don’t get any errors and the label is changed.