---
title: "Detach the caller as a collaborator from a meal plan"
method: POST
path: "/compat/v2/mealPlans/detachMealPlan"
tags: ["mealPlans"]
---

# Detach the caller as a collaborator from a meal plan

`POST /compat/v2/mealPlans/detachMealPlan`

## Request

- Base URL: `https://api.recipesage.com`
- URL: `https://api.recipesage.com/compat/v2/mealPlans/detachMealPlan`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/recipesage/apis/recipesage-api/docs/compat/v2/mealPlans/detachMealPlan/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `id` string, uuid, required
  - `reference` string, uuid

## Response `200`

Successful response

- object
  - `reference` string, uuid, required
  - `id` string, uuid, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `500`: Internal server error

---

[API](https://skmtc.dev/recipesage/apis/recipesage-api.md) - [All operations](https://skmtc.dev/recipesage/apis/recipesage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/recipesage/apis/recipesage-api/revisions/62ab3d307054?raw)
