Rest API Returning OSC-CREST-00012
Summary
Error attempting to create resource: Invalid NamedID: ID could not be resolved from the given LookupNameContent
I am attempting to run the following command;
curl -s --request POST --url https://customer.custhelp.com/services/rest/connect/v1.4/incidents/ --header 'authorization: Basic xxxxxxxxxxxx' --header 'content-type: application/json' --header 'osvc-crest-application-context: MST' --data '{"subject": "Test Incident Test", "primaryContact": { "id": 15567}, "customFields": { "c": { "installationtype": {"lookupName": "user" }, "pf_rel": {"lookupName": "8.4"}}},"product": {"lookupName": "SP/TMS (mSP/TMS)"},"category": { "lookupName": "AMS Alert"}}'
The command comes back with
{"type":"https://customer.custhelp.com/services/rest/connect/exceptions/OSC-CREST-00012","title":"Problem creating resource","status":400,"detail":"Error attempting to create resource: Invalid NamedID: ID could not be resolved from the given LookupName[user]; Incident.CustomFields.c.installationtype.LookupName","instance":"