Reorder channel folders

PATCH https://chat.zulip.org/api/v1/channel_folders

Given an array of channel folder IDs, this method will set the order property of all of the channel folders in the organization according to the order of the channel folder IDs specified in the request.

Changes: New in Zulip 11.0 (feature level 414).

Usage examples

curl -sSX PATCH https://chat.zulip.org/api/v1/channel_folders \
    -u BOT_EMAIL_ADDRESS:BOT_API_KEY \
    --data-urlencode order=null

Parameters

order (integer)[] optional

Example: null

A list of channel folder IDs representing the new order.


Response

Example response(s)

Changes: As of Zulip 7.0 (feature level 167), if any parameters sent in the request are not supported by this endpoint, a successful JSON response will include an ignored_parameters_unsupported array.

A typical successful JSON response may look like:

{
    "msg": "",
    "result": "success"
}

An example JSON response when the order mapping is invalid:

{
    "code": "BAD_REQUEST",
    "msg": "Invalid order mapping",
    "result": "error"
}