System Information
- Strapi Version:4.1.7
- Operating System: Mac OS Monterey
- Database:
- Node Version: v17.0.1
- NPM Version: 8.1.0
- Yarn Version:
Hi I am able to create a new entry in a Content-Type.
However if I create a new entry in a Content-Type with a RELATION field/value, that Relation value is totally ignored and does not get reflected in the newly created entry.
For example if I post this data:
{
"data": {
"name": "17",
"performers": "17",
"venue": "17",
"address": "17",
"date": "2022-06-10",
"time": "8:00 PM",
"description": "17",
"user": "1"
}
}
The result I get is as if I only sent:
{
“data”: {
“name”: “17”,
“performers”: “17”,
“venue”: “17”,
“address”: “17”,
“date”: “2022-06-10”,
“time”: “8:00 PM”,
“description”: “17”,
}
}
without the user:"1"
.
What is the reason for this???
HOw does one post to the Rest API of Strapi so Strapi will acknowledge that you also sent a value for the Relation field and therefore Strapi should update both Content-Types that have a relationship??
Thank you