跳转到内容
EN

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_idpathstring是Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.

响应

状态码内容类型说明
204The subscription is deleted; there is no body.
401application/problem+jsonUNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
404application/problem+jsonSUBSCRIPTION_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.
503application/problem+jsonPROVIDER_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.