'How to include the creator of an entity in a CREATE api call to a STRAPI API

I am trying to create a small web app using STRAPI for my API.

I have two collection types, the User and the Event. The relationship between them is one-to-many (A user has many events).

The problem is that when I am trying to send a request (I tried both postman and my frontend app) in order to CREATE a new Event, I can not find how to include the creator's ID in the data of the request.

As a result, the event is created, but it has no creator.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source