How to insert data include relation field in REST API v4.11.1

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

When sending a request to create data-related field is empty, except for manual added it’s fine, I need to know for insert with API

I need to insert user-id, partner column will be only one user, It’s a one-to-one relationship

I try to search on the internet, It’s not work.

Thank you.

Thank you for your reply, Populate it looks like to get the data, but when inserting data with a relationship, I don’t know how to insert it with that.

Do you have some example REST API query insert with the related field?

Thank you.

The problem is fixed from update user permission with checked to find and findOne.

1 Like