Delete event subscription
Code Mode: praxis.events.subscriptions.delete
HTTP: DELETE /events/v1/subscriptions/{subscription_id}
Stop waiting for an event, for example when the run you were waiting for was canceled by you. The subscription stops matching at once and a letter already written stays in the inbox. A once subscription that has already fired is gone, so deleting it answers 404 SUBSCRIPTION_NOT_FOUND; treat that as done. Take the id from subscriptions.create or subscriptions.list.
签名
praxis.events.subscriptions.delete(args:{path:{/** e.g. "esub_0123456789abcdef0123456789abcdef" */ subscription_id:string}}):Promise<unknown>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| subscription_id | path | string | 是 | Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 204 | The subscription is deleted; there is no body. | |
| 401 | application/problem+json | UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization. |
| 404 | application/problem+json | SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else’s. List subscriptions to find an id you can reach. |
| 503 | application/problem+json | PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call. |