[#1127] Creating clients from API, additional fields are not set

Migrated from Redmine #1127 | Author: Luc Pauwels
Status: New | Priority: Normal | Created: 2023-10-31


Hello,

in creating a new client the addition fields are not inported:
the is’s of field I got from the API
using this JSON in body:
{“name":“Bruno”,“email”:"bruno99@gmail.com”,“phone”:“0477858585”,“additional_fields”:[{“field”:“3bbca3249e992e1bc6e9d11a4f8bd706”,“value”:“06011962”},{“field”:“42f98f0b7d88a5eda0961038bb5068c5”,“value”:“Man”}]}

Redmine Admin wrote:

hi, not sure what is the problem, could you please explain it better?

Luc Pauwels wrote:

Hello,

we have defined 2 custom fields for the clients (gender and birthday),
the id’s of these field are the ones show in the json
when creating a new client the standard fields are set correctly, but the custom fields stay empty
I got the field id’s from an api call

Redmine Admin wrote:

Please provide your RAW http request to create a client