Update the List of a Custom Field Setup not overwrite the old List
Posted: Tue Oct 22, 2024 3:31 am
Hi Team,
I’m unsure whether this is a bug or expected behavior. I'm trying to update the employee custom field list template using the API endpoint /api/v1.0/companies/{companyID}/setup/customFields/employees/{customFieldID}.
In the payload, I’ve defined the list as follows:
I assumed this would overwrite the existing list with the new values. However, it seems to be appending the new list items to the old ones. Is this the intended functionality?
If so, is there a way to overwrite the list instead of appending to it?
Best regards,
Vincent
I’m unsure whether this is a bug or expected behavior. I'm trying to update the employee custom field list template using the API endpoint /api/v1.0/companies/{companyID}/setup/customFields/employees/{customFieldID}.
In the payload, I’ve defined the list as follows:
Code: Select all
"ListItems": [
"string"
]
If so, is there a way to overwrite the list instead of appending to it?
Best regards,
Vincent