Admin

Assign user (or pending user) to a group

post/api/admin/groups/assign-user

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/assign-user
  • Auth
    HTTP bearer

Request body

groupIdnumber required
userIdstring required

User ID or "pending_<accessCodeId>"

Example request

{
  "groupId": 1,
  "userId": "5"
}

Response

unknown required

Example response

{
  "success": true,
  "message": "User assigned to group"
}

Changes

No recorded changes to this operation across all 34 revisions of this API.