when making a create group request, i need to add an entity in the request body, do i add the creator of the group here? or a new entity key? in the response is that entity the group entity?
when making a create group request, i need to add an entity in the request body, do i add the creator of the group here? or a new entity key? in the response is that entity the group entity?
You may input the creator entity key in the request, which usually the caller. To be clear, any Entity ID is generated randomly and cannot be modified by the developer.
Usually, the entity key in entity API means the target or the one who performs this action. For example, in GetProfile API, you need to input an entity key, which is the target to get the profile. Leaving this property empty will return the caller's profile. While in CreateGroup API, entity key is also not a required property, because by default the caller is the creator, and if you process the creation on the server side (the caller is a title with title-level entity token), you can designate a creator.
Moreover, all these actions and permissions can be changed via entity policy.
8 People are following this question.