Unable to bulk update tickets - INVALID_DATA /fieldName

Unable to bulk update tickets - INVALID_DATA /fieldName

Hi,

I'm having issues trying to bulk-update tickets using the API. I'm trying to update the contact owning the records, therefore I'm trying to change the "contactId" value for a given list of tickets.

Here's the request I sent and its body (values have been obfuscated): POST /api/v1/tickets/updateMany
  1. {
  2.     "ids": ["2194030000XXXXXXXX", "2194030000XXXXXXXX", "2194030000XXXXXXXX""],
  3.     "fieldName": "contactId",
  4.     "fieldValue": "2194030000XXXXXXXX"
  5. }
And here's the error I get in return:
  1. {
  2.     "errorCode": "INVALID_DATA",
  3.     "message": "The data is invalid due to validation restrictions",
  4.     "errors": [{
  5.             "fieldName": "/fieldName",
  6.             "errorType": "invalid",
  7.             "errorMessage": ""
  8.         }
  9.     ]
  10. }

What am I doing wrong? I literally just followed the documentation. I don't see why the "contactId" field would be invalid. I've checked it for typos several times and I still can't see anything abnormal.

Thanks for your help.

Cyrille