Patch request Error, json-server

Anyone can help me what is the problem of this:
The get request is working using the user_num property as identifier and not the id. but when i use it in patch it returns 404 not found

Get Request:
axios.get('http://localhost:3000/users?user_num=US24-18')
.then(function (response) {
// handle success
alert('sucess')
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})

Patch:
axios.patch('http://localhost:3000/users?user_num=US24-18', {
userStatus: 'active'
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
});
Was this page helpful?