question

khattabkhairdeen avatar image
khattabkhairdeen asked

create Entity group entity in request

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?

entities
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.