[details=“System Information”]
- Strapi Version 4.11.5:
- Windows 11:
- Postgres: pg 8.7.3
- Node Version: 16.14.2
- Yarn Version: 1.22.19
i am using @nuxt/strapi and here’s my function.
await update('users', props.id, { ...values, phone: values.phone.replace(/[^0-9]/g, ''), });
the data is being sent as {data: {…updatedValues}} and doesn’t work.
However if I use the generated swagger documentation it sends it as {…updatedValues} and it works.
For some reason my PUT /users/:id is not expecting a data object and I don’t know how to proceed. Other endpoints do expect a data object.