We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Rest API Returning OSC-CREST-00012

Received Response
24
Views
5
Comments
edited Oct 26, 2018 4:32PM in Integrations and APIs 5 comments

Summary

Error attempting to create resource: Invalid NamedID: ID could not be resolved from the given LookupName

Content

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":"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!