#!/usr/bin/env pythonimportzulip# The user for this zuliprc file must be an organization administratorclient=zulip.Client(config_file="~/zuliprc-admin")# Reorder the custom profile fields in the user's organization.order=[9,8,7,6,5,4,3,2,1]request={"order":json.dumps(order)}result=client.call_endpoint(url="/realm/profile_fields",method="PATCH",request=request)print(result)
A list of the IDs of all the custom profile fields defined in this
organization, in the desired 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.