Page 1 of 1
Issue PATCHing Company Customer custom field
Posted: Sat Aug 30, 2025 11:37 pm
by Ashishs
Hi,
I am trying to update custom field with id 156 on Company Customer table:
API Endpoint - /api/v1.0/companies/0/customers/__CUSTOMER_ID__/customFields/156
Request Body:
=============
{
"Value": "2025-08-31"
}
=============
I am getting 422 Unprocessable Entry with following response body:
=============
{
"errors": [
{
"path": null,
"message": "No data to be updated for customer custom field.",
"value": "156"
}
]
}
=============
I'm using Postman for testing.
Please advise.
Re: Issue PATCHing Company Customer custom field
Posted: Tue Sep 02, 2025 6:24 am
by Ashishs
Bumping this up for any advice.
Re: Issue PATCHing Company Customer custom field
Posted: Fri Sep 05, 2025 5:45 am
by SimproAPITeam
Hi,
Can you check if your header includes the Content-Type: application/json or make sure the body type is json.
Re: Issue PATCHing Company Customer custom field
Posted: Fri Sep 05, 2025 7:23 am
by Ashishs
Here is the command:
curl --location --request PATCH 'https://__COMPANY_NAME__.simprosuite.com/api/v1.0/companies/0/customers/21978/customFields/156' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer __TOKEN__' \
--data '{
"Value": "2025-08-31"
}'
Here 156 is the custom field ID that I want to update.
Response body:
{
"errors": [
{
"path": null,
"message": "No data to be updated for customer custom field.",
"value": "156"
}
]
}
Re: Issue PATCHing Company Customer custom field
Posted: Wed Sep 10, 2025 11:22 am
by Ashishs
@SimproAPITeam
I need to resolve this to finish a project. Please advise as it is a blocker
Re: Issue PATCHing Company Customer custom field
Posted: Fri Sep 12, 2025 4:25 am
by SimproAPITeam
Hi Ashish,
Your request body looks correct and I have copied it directly into my postman for testing successfully.
The error indicates that something is missing from the request body. Such as a missing bracket, or a comma following the value if there is only one value in the JSON being sent. Or if it was set as text format instead of JSON.
This body should work fine for custom fields of type text and date.
As we are unable to replicate this i suggest you create a case with our helpdesk who can try to reproduce this in a copy of your build. Please include your Simpro build name and the id's of the customers and customfields for testing.
https://helpdesk.simprogroup.com/
Regards
Re: Issue PATCHing Company Customer custom field
Posted: Sat Sep 13, 2025 3:57 am
by Ashishs
I figured out. There is nothing wrong with the request body. But the request header was missing "Content-Length" which apparently is required for this PATCH operation.
Re: Issue PATCHing Company Customer custom field
Posted: Fri Sep 19, 2025 3:11 am
by SimproAPITeam
Hi Ashishs,
Happy to hear you got it working.
Regards