Skip to content

Unable to change email1 field via API #10513

Open
@JackBuchanan

Description

@JackBuchanan

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIIssues & PRs related to all things regarding the APIArea: EmailsIssues & PRs related to all things regarding emails & email modulePriority:ImportantIssues & PRs that are important; broken functions, errors - there are workaroundsSeverity: ModerateKey function failed, but no or little impactStatus:Fix ProposedA issue that has a PR related to it that provides a possible resolutionType: BugBugs within the core SuiteCRM codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions