Assistance Required with Invalid Key Error on User-Todo Relationship in Strapi

Hi there! I’m sorry to hear you’re having trouble with your Strapi application. Let’s see if we can figure this out together.

Ensuring the Correct Relationship is Configured

  1. Check the Content-Type Builder: Ensure that the relationship between User and Todo is correctly set up as a Many-to-One relationship in the Content-Type Builder. The User should be the target model, and Todo should have a field referencing User.
  2. Field Configuration: Make sure the field in the Todo content type is correctly configured to accept a relation to the User model. The field should be of type relation and should reference the User model.

Potential Permissions or Configurations

  1. Permissions: Verify that the necessary permissions are set up for the Todo content type. You need to ensure that the create and update permissions for the Todo content type include the user field.
  2. Role Permissions: Check the roles and permissions to ensure that the role you are using to create or update the Todo has the necessary permissions to access the User model.

Other Steps to Consider

  1. Field Permissions: Ensure that the user field in the Todo content type has the create and update permissions enabled.
  2. API Endpoint: Make sure you are using the correct API endpoint to create or update the Todo with the user field included in the request body.

Regards,
Alice R.
mychart Wellstar org