Admin
Create a new group
Changed onpost/api/admin/groups
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/admin/groups
- AuthHTTP bearer
Request body
Example request
{
"name": "January 2025 Cohort",
"description": "New year weight loss group",
"startDate": "2025-01-15",
"endDate": "2025-04-15",
"programId": 2
}Response
unknown required
Example response
{
"success": true,
"group": {
"id": 3,
"name": "February 2026 Cohort",
"created_at": "2026-02-19T00:00:00.000Z"
}
}Changes
- info
added the new optional request property
- info