#✅ Updating user password via PUT getting 404

4 messages · Page 1 of 1 (latest)

soft dirge
#

Hi all, I'm trying to update this user's password but I'm getting 404 saying route is not found. What am I doing wrong?

fetch(https://cleanvid-cloud.directus.app/users/346b4b2f-bd3c-474a-a66b-a6a5f55ee26a, {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'Authorization': Bearer mytoken here
},
body: JSON.stringify({
password: "Changeme123!"
})
})
.then(response => {
console.log({ response })
if (response.ok) {
console.log('Password updated successfully!');
} else {
throw new Error('Failed to update password');
}
})
.catch(error => {
console.error(error);
});

mellow ravenBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)

mellow ravenBOT
#

✅ Updating user password via PUT getting 404

mellow ravenBOT