Issue PATCHing Company Customer custom field

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
Ashishs
Posts: 68
Joined: Tue Apr 16, 2019 11:14 pm

Issue PATCHing Company Customer custom field

Post by Ashishs » Sat Aug 30, 2025 11:37 pm

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.
Ashishs
Posts: 68
Joined: Tue Apr 16, 2019 11:14 pm

Re: Issue PATCHing Company Customer custom field

Post by Ashishs » Tue Sep 02, 2025 6:24 am

Bumping this up for any advice.
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Issue PATCHing Company Customer custom field

Post by SimproAPITeam » Fri Sep 05, 2025 5:45 am

Hi,

Can you check if your header includes the Content-Type: application/json or make sure the body type is json.
Simpro API Team | Simpro Software Group
Ashishs
Posts: 68
Joined: Tue Apr 16, 2019 11:14 pm

Re: Issue PATCHing Company Customer custom field

Post by Ashishs » Fri Sep 05, 2025 7:23 am

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"
}
]
}
Ashishs
Posts: 68
Joined: Tue Apr 16, 2019 11:14 pm

Re: Issue PATCHing Company Customer custom field

Post by Ashishs » Wed Sep 10, 2025 11:22 am

@SimproAPITeam

I need to resolve this to finish a project. Please advise as it is a blocker
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Issue PATCHing Company Customer custom field

Post by SimproAPITeam » Fri Sep 12, 2025 4:25 am

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.

Code: Select all

{
    "Value": "2025-08-31"
}
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
Simpro API Team | Simpro Software Group
Ashishs
Posts: 68
Joined: Tue Apr 16, 2019 11:14 pm

Re: Issue PATCHing Company Customer custom field

Post by Ashishs » Sat Sep 13, 2025 3:57 am

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.
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Issue PATCHing Company Customer custom field

Post by SimproAPITeam » Fri Sep 19, 2025 3:11 am

Hi Ashishs,
Happy to hear you got it working.

Regards
Simpro API Team | Simpro Software Group
Post Reply