Unable to change email1 field via API #10513
Labels
Area: API
Issues & PRs related to all things regarding the API
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
When creating a record with an email1 field(Contacts/accounts etc) you are able to pass in the email1 field into the body to set the email:
POST: <SuiteCRM_URL>/Api/V8/module
BODY:
{
"data": {
"type": "Contacts",
"attributes": {
"first_name": "Bob",
"last_name": "Dylan",
"email1": "[email protected]"
}
}
}
This successfully creates the contact with the email1 populated.
When attempting the same call with a PATCH request to update the email1 field the other fields are updated but email1 is not changed.
Possible Fix
No response
Steps to Reproduce the Issue
Context
No response
Version
7.14.4
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
MySQL, PHP8.2
Operating System and Version
Ubuntu 22
The text was updated successfully, but these errors were encountered: