As I heard re-optin to mobile contact using import definition doesn't work. I could see there are 2 options to re-optin:
- QueueMO API request
- Update Contact
I don't want to send sms while re-optin to contact, so I was trying to use the 2nd option and while I was achieving this, i got "Internal server error - 500".
Can someone help me with this? is this the correct request I'm doing?
Below are the API request details used:
Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
PATCH /contacts/v1/contacts
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Payload:
{
"contactKey": "1111111111",
"attributeSets": [{
"name": "MobileConnect Subscriptions",
"items": [{
"values": [ {
"name": "Mobile Number",
"value": "1111111110"
},
{
"name": "Opt In Status",
"value": 2
},
{
"name": "Opt Out Status",
"value": 0
},
{
"name": "Modified Date",
"value": "03-14-2023"
},
{
"name": "Created Date",
"value": "03-14-2023"
}]
}]
}]
}
Error:
"documentation": "https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/error-handling.htm",
"errorcode": 0,
"message": "Internal Server Error"