locations from its old datacenters references.locations field of the Datacenter event type, which no longer exists, so it fails with HTTP 500 as soon as a grant has datacenters.authorization: ********************curl --location --request POST 'https://qa-api.kiolinkapp.com/v1/business/update-users-locations' \
--header 'authorization: <api-key>'{
"result": [
{
"_id": "65f1c2a9e4b0a1b2c3d4e5f6",
"days": [
1,
2,
3,
4,
5
],
"from": "08:00",
"to": "20:00",
"locations": [
{
"_id": "65f1c2a9e4b0a1b2c3d4e601",
"datacenter": "MEX1",
"status": true,
"fases": [
"F1",
"F2"
]
}
],
"datacenters": [
"65f1c2a9e4b0a1b2c3d4e5f6"
],
"_business": "65f1c2a9e4b0a1b2c3d4e5f6",
"_business_user": "65f1c2a9e4b0a1b2c3d4e5f6",
"_authorized_business_user": "65f1c2a9e4b0a1b2c3d4e5f6",
"request_date": "2025-01-10T16:00:00.000Z",
"authorized_date": "2025-01-11T09:30:00.000Z",
"status": "Iniciada",
"authorizer_name": "Ana López",
"authorizer_email": "ana.lopez@example.com",
"__v": 0
}
],
"length": 0
}