Add a user to a group
group_add_memberAdd a user to a user group by UUID or email. Returns the membership row ID with error handling for duplicate or archived group.
Instructions
Add a user to a user group, by user UUID OR email. Provide exactly ONE of user_id / email — the server resolves email to user_id and 4xxs if no user has that email. Returns the membership row id. Idempotency: re-adding the same user returns 409 ALREADY_MEMBER. Adding to an archived group returns 409 GROUP_ARCHIVED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Group UUID. | |
| user_id | No | ||
| No |