Hi,
I’m using the “Try API” functionality from the docs.
When using the create or update contact api call, I’m getting an invalid value for my source_type
. I’m trying to create the source type in my sandbox CRM. I looked in the general documentation, and it seemed that this corresponded to a Lead Source. I created a lead source there (it shows up in the Lead Source drop-down now if I do the manual create a contact through the CRM site). However, when I try to pass the source_type
through the API, using the same value (in this case “HEARKEN”), it returns
{
"message": "Input value is invalid: HEARKEN"
}
On the Lead Source record, I made “HEARKEN” the value for Name, Category and Medium in the hopes that it was one of them. Here’s the JSON I’m sending.
{"source_type":"HEARKEN","duplicate_option":"Email","given_name":"corey","family_name":"","email_addresses":[{"email":"coreyhaines@example.com","field":"EMAIL1"}],"opt_in_reason":"Opted out of form","tags":[]}
Thanks!