Migrated from Redmine #1389 | Author: Japheth Balane
Status: Feedback | Priority: High, I’m very impatient | Created: 2025-02-27
Issue with Updating Custom Client Fields via API
I’m experiencing an issue with updating custom client fields via the API. When I make a PUT request to update a client, only the standard fields (name, phone) are updated while custom fields (like organizationName) remain unchanged. The request doesn’t return any error - it appears successful, but the custom fields simply don’t update.
Implementation Details
I’m making a PUT request to /clients/{clientId}
Request includes proper authentication headers (X-Company-Login and X-Token)
Request body includes both standard and custom fields:
{
name: “John Doe”,
phone: “1234567890”,
organizationName: “ABC Company” // Custom field that doesn’t update
}
The name and phone update successfully, but organizationName doesn’t change
Additional Observations
If I change the email address in an update request, it creates a new client instead of updating the existing one.
Getting client information works correctly, including the custom fields.
Updating standard fields works correctly.
Questions
Is there a different endpoint or method I should be using to update custom client fields?
Is updating custom fields after client creation supported by the API?
Are there any special parameters or formatting required for custom field updates?
Any guidance would be greatly appreciated. Thank you!