This API adds or removes a list of users from a custom segment (cohort) in MoEngage.
uid) provided in the request. This API does not create new users.uid) provided in the request payload.Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
The cohort details and the members to add or remove.
This field indicates whether users need to be added to the cohort or removed from it.
add_members, remove_members Contains the information about the cohort to be synced.
This field indicates the name of the partner whose cohort is being synced to MoEngage.
"6HNBXFm7ZS"
Success. This response is returned when the request is processed successfully.