---
title: "Add or remove a managed project"
method: PATCH
path: "/users/{UserId}/managedProjects"
tags: ["Users"]
---

# Add or remove a managed project

`PATCH /users/{UserId}/managedProjects`

## Path parameters

- `UserId` string, required

## Request body

- object
  - `action` 'add' | 'remove', required
  - `projectId` string, required

## Response `200`

Managed project updated

- object
  - `user` User
    - `_id` string — MongoDB ObjectId
    - `name` object
      - `firstName` string
      - `lastName` string
    - `email` string, email
    - `accessLevel` 'user' | 'admin' | 'superadmin'
    - `role` string
    - `createdDate` string, date-time
    - `currentRole` string
    - `desiredRole` string
    - `newMember` boolean
    - `currentJobTitle` string
    - `desiredJobTitle` string
    - `skillsToMatch` string[]
    - `firstAttended` string
    - `attendanceReason` string
    - `projects` string[]
    - `githubHandle` string
    - `phone` string
    - `textingOk` boolean
    - `slackName` string
    - `isHflaGithubMember` boolean
    - `githubPublic2FA` boolean
    - `availability` string
    - `managedProjects` string[]
    - `isActive` boolean
  - `project` Project
    - `_id` string
    - `name` string
    - `description` string
    - `githubIdentifier` string
    - `projectStatus` 'Active' | 'Completed' | 'Paused'
    - `location` 'DTLA' | 'Westside' | 'South LA' | 'Remote'
    - `createdDate` string, date-time
    - `completedDate` string, date-time
    - `githubUrl` string
    - `slackUrl` string
    - `googleDriveUrl` string
    - `googleDriveId` string
    - `hflaWebsiteUrl` string
    - `videoConferenceLink` string
    - `lookingDescription` string
    - `recruitingCategories` string[]
    - `partners` string[]
    - `managedByUsers` string[]
    - `onboardOffboardVisible` boolean

## Other responses

- `400` — Bad request

---

[API](https://skmtc.dev/hackforla/apis/vrms-api.md) · [All operations](https://skmtc.dev/hackforla/apis/vrms-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hackforla/vrms-api/revisions/092c34cc0e58/schema)
