Delete topic
Removes the topic and everything hanging off it: its grants, keys, sinks, subscriptions and messages. Needs manage on the topic. Archiving with UpdateTopic is the reversible alternative.
Required scopes: notify:topics:edit
Authorization
BearerAuth An access token from Xeonr Auth, presented as
Authorization: Bearer <token>. Its audience must include
https://notify.xeonr.io, and it must carry the scope the method
lists.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length <= 32Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/DeleteTopic" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{}Create topic POST
Registers a topic under a user URN (the caller's own) or a team URN the caller administers. Publishing to a name that does not exist is an error, never an implicit create, so this call is the registration step. A service account with manage on the owning team's topics may create on the team's behalf — the per-user product topic case. **Required scopes:** `notify:topics:edit`
Describe a Discord channel POST
Looks a Discord channel up as the bot a sink on this topic would post as (the topic's app's `discord_bot` credential, else the owner's, else the deployment's) and returns the server it belongs to and its name. A product that lets its own tenants pick a channel uses it to check the channel is in a server that tenant owns before adding the sink, since one bot is usually in many tenants' servers. `FAILED_PRECONDITION` when the bot cannot see the channel (not in that server, or no View Channel), `INVALID_ARGUMENT` for a channel outside any server (a DM). Needs manage on the topic. **Required scopes:** `notify:topics:read`