When I am try to insert data into a data extension using REST API I'm getting an error.
Post Data:
{
"values":{
"Interest":"1et.com"
}
}
In the Header I provide AccessToken
.
Response is:
{
"message": "Primary key 'CustomerID' does not exist.",
"errorcode": 10000,
"documentation": ""
}
But I have CustomerID
as a Primary Key on that Data Extension
Best Answer
It looks like there are no value "123" (from your request) in the Column "CustomerID". According to documentation this is "Upsert" operations which means like "update and insert". Can you try to do Asynchronous Insert Operation - https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/insertDataExtensionIDAsync.htm I hope it helps you in the issue.