Create group
Create an empty group with a name and description.
POST https://cotlet.dev/api/v1/learnupon/groups
write
Creates one group and returns its group_id. It reaches no one and changes no account; an admin can delete an empty group in LearnUpon, which does not delete any accounts, so this call does not wait for your OK. Only admins can create groups.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Group name. |
| description string | string | Group description. |
Request
curl -X POST https://cotlet.dev/api/v1/learnupon/groups \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("learnupon", "create_group", {"name":"Jane Doe"}) const result = await cotlet.call('learnupon', 'create_group', {"name":"Jane Doe"}); cotlet call learnupon create_group --data '{"name":"Jane Doe"}' Example response
{
"group_id": "4902",
"name": "Autumn 2026 cohort",
"users": 0
}