Am doing a POST REST API call out from Postman to insert a record in Data extension.
Below are the steps: Step 1:
POST --> https://s50.auth.marketingcloudapis.com/v1/requestToken
Body --> { "clientId" : "*********",
"clientSecret" : "*****" }
Am getting a refresh token --> *****.
Step 2:
Authorization --> Bearer Access Token, Content-Type --> application/json
POST --> https://s50.rest.marketingcloudapis.com/hub/v1/dataevents/key:Test_DE/rowset
Body --> [
{
"keys": {
"EmailAddress": "[email protected]"
},
"values": {
"Test":"Test24"
}
}
]
I have only 2 fields in my Test_DE Data extension which is EmailAddress and Test.
Am getting below error from Postman:
{
"documentation": "https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/error-handling.htm",
"errorcode": 0,
"message": "Not Authorized"
}
Please help!!