'Face API recognitionModel can't be set

I am developing a node.js backend that connects t Azure Face API, and until yesterday I was able to work around it with no problem, but suddenly without even changing my code I am unable to create a personGroup with a recognition model distinct to recognition_01.

Here is my code, which is almost copied from the docs, with the change that now the name of the personGroup must be given as a parameter instead of inside the JSON

await client.personGroup.create(uuid.v4(), 'PersonGroup1', { recognitionModel: 'recognition_04' });
let a = await client.personGroup.list();
console.log(a);

Here you get the response of listing the personGroups I have created with this code, as I said, this worked until yesterday:

[
  {
    name: 'personGroup1',
    recognitionModel: 'recognition_01',
    personGroupId: '11793675-144d-4f3a-af3c-929208d6b70b'
  },
  {
    name: 'personGroup1',
    recognitionModel: 'recognition_01',
    personGroupId: '20e6a52e-cfa0-4d9e-be93-7c7eddaeb7fa'
  },
  {
    name: 'personGroup1',
    recognitionModel: 'recognition_01',
    personGroupId: '65a45251-cf8f-4e54-aa90-46982fa054ac'
  },
  {
    name: 'personGroup1',
    recognitionModel: 'recognition_01',
    personGroupId: '7a5bb29d-bed1-4629-82cb-87884b4121b9'
  },
  {
    name: 'Prueba1',
    recognitionModel: 'recognition_01',
    personGroupId: '80326ce0-8c91-4736-a6a7-64a87defdac7'
  },
  {
    name: 'Prueba2',
    recognitionModel: 'recognition_01',
    personGroupId: '899375ef-245b-4771-b411-37cac74af4da'
  },
  {
    name: 'Prueba2',
    recognitionModel: 'recognition_01',
    personGroupId: 'a05a386b-e6e4-4d94-a310-6e747264ecd3'
  },
  {
    name: 'personGroup1',
    recognitionModel: 'recognition_01',
    personGroupId: 'a237a4e0-9bf4-445d-a641-4fc01d821979'
  },
]

EDIT: when I try to make a http put to the api directly with the recognitionModel in the body the same happens, even though it detects the rest of params I am sending inside the body, such as userData

If anyone can help, I'll be really grateful

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source