---
title: "Scheduled Posts Remove Channels Route"
method: POST
path: "/scheduled_posts/remove_channels"
tags: ["scheduled_posts"]
---

# Scheduled Posts Remove Channels Route

`POST /scheduled_posts/remove_channels`

## Request

- Base URL: `https://api.robopost.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robopost.app/scheduled_posts/remove_channels`
- Auth: HTTP bearer

Remove channels from the given scheduled posts.
It is assumed that the keys of payload.channel_ids (a dict) represent the channel IDs to remove.
For each scheduled post ID in payload.scheduled_post_ids, the endpoint first retrieves the scheduled post.
It then computes what the 'channel_ids_for_form' field would be after removing the specified channels.
If removal would result in an empty list (i.e. leave the post without any channels),
the removal for that post is ignored.

## Request body

- ScheduledPostRemoveChannelsMultiPayload
  - `scheduled_post_ids` string[], required
  - `channel_ids` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/robopost/apis/robopost-api.md) · [All operations](https://skmtc.dev/robopost/apis/robopost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robopost/apis/robopost-api/revisions/46b1cafa8808?raw)
