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

Parameters: create_group
NameTypeDescription
name string required string Group name.
description string string Group description.

Request

cURL
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"}'
Python
result = client.call("learnupon", "create_group", {"name":"Jane Doe"})
Node.js
const result = await cotlet.call('learnupon', 'create_group', {"name":"Jane Doe"});
CLI
cotlet call learnupon create_group --data '{"name":"Jane Doe"}'

Example response

JSON

{
  "group_id": "4902",
  "name": "Autumn 2026 cohort",
  "users": 0
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.