I try to use face api by using js node but the response is always "statusCode": 404, "message": "Resource not found" is there something I should miss when installing?
this my code
const uriBase2 = 'https://myendpoint/face/v1.0/persongroups';
const params = {
'personGroupId': 'dava12345',
};
const options = {
uri: uriBase2,
qs: params,
method: 'PUT',
body: '{ "name": "group2", "userData": "user-provided data attached to ", "recognitionModel": "recognition_02" }',
headers: {
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key' : 'mykey'
}
};
request(options, (error, response, body) => {
if (error) {
console.log('Error: ', error);
return;
}
let jsonResponse = JSON.stringify(JSON.parse(body), null, ' ');
console.log('JSON Response\n');
console.log(jsonResponse);
});



