Unable to change email1 field via API #5247

Open
opened 2026-02-20 16:31:56 -05:00 by deekerman · 0 comments
Owner

Originally created by @JackBuchanan on GitHub (Sep 3, 2024).

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": "freewheelin@mail.com"
}
}
}

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

1. Setup V8 API
2. Make API request with contents as described above
3. See record created after POST
4. See record email1 stay unchanged after PATCH request

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

Originally created by @JackBuchanan on GitHub (Sep 3, 2024). ### 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": "freewheelin@mail.com" } } } 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 ```bash 1. Setup V8 API 2. Make API request with contents as described above 3. See record created after POST 4. See record email1 stay unchanged after PATCH request ``` ### 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5247
No description provided.