联系客服 新闻资讯 所有频道 使用说明 芯片选型

Remove a playground

Remove a code playground previously configured for an organization.

DELETE https://we.comake.online/api/v1/realm/playgrounds/{playground_id}

Changes: New in Zulip 4.0 (feature level 49).

Usage examples

#!/usr/bin/env python3

import zulip

# Pass the path to your zuliprc file here.
client = zulip.Client(config_file="~/zuliprc")

# Remove the playground with ID 1
result = client.call_endpoint(url="/realm/playgrounds/1", method="DELETE")
print(result)

curl -sSX DELETE https://we.comake.online/api/v1/realm/playgrounds/1 \
    -u BOT_EMAIL_ADDRESS:BOT_API_KEY

Parameters

playground_id integer required in path

Example: 1

The ID of the playground that you want to remove.


Response

Example response

A typical successful JSON response may look like:

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