Code: Select all
POST /rest-services/79hhop/entity/ClientContact/7 HTTP/1.1
Host: rest99.bullhornstaffing.com
Accept: application/json
Accept-Encoding: gzip, deflate
Content-Type: application/json
Content-Length: 33
BHRestToken: [token]
{
"clientContactID": 1235
}
Code: Select all
HTTP/1.1 500 Internal Server Error
Content-Type: application/json;charset=UTF-8
X-RateLimit-Remaining-Minute: 2996
X-RateLimit-Limit-Minute: 3000
RateLimit-Remaining: 2996
RateLimit-Reset: 34
RateLimit-Limit: 3000
Server: Apache-Coyote/1.1
X-Kong-Upstream-Latency: 60
X-Kong-Proxy-Latency: 1
Content-Length: 341
Date: Wed, 27 Sep 2023 12:14:27 GMT
Connection: close
{"errorMessage":"error persisting an entity of type: ClientContact","errorMessageKey":"errors.cannotPersistEntity","errorCode":500,"errors":[{"detailMessage":"cannot convert value to data type for field clientContactID","propertyName":"clientContactID","severity":"ERROR","type":"IMPROPERLY_STRUCTURED_SCALAR"}],"entityName":"ClientContact"}
What causes this error? The metadata shows that clientContactId is an INTEGER data type.
Code: Select all
{
"name": "clientContactID",
"type": "SCALAR",
"dataType": "Integer",
"confidential": false,
"label": "Client Contact ID",
"hideFromSearch": false
},