Admin

Create a new group

Changed on
post/api/admin/groups

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/admin/groups
  • Auth
    HTTP bearer

Request body

namestring required
descriptionstring
startDatestring
endDatestring
programIdnumber

Which program this group cohort represents

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