跳至正文內容
TursoDB.cn 獨立社群 · MVCC 並行寫入與每 Agent 獨立庫實戰 閱讀解析 →
Turso Cloud API 參考 介面資源 邀請管理

刪除邀請

依電子郵件刪除組織的待處理邀請。

DELETE https://api.turso.tech/v2/organizations/{organizationSlug}/invites/{email}
WARNING

邀請功能僅限於 scaler 方案及以上版本使用。

curl -L -X DELETE https://api.turso.tech/v2/organizations/{organizationSlug}/invites/{email} \
  -H 'Authorization: Bearer TOKEN'
import { createClient } from "@tursodatabase/api";

const turso = createClient({
  org: "mycompany",
  token: "",
});

await turso.organizations.deleteInvite("user@example.com");

OpenAPI

openapi: 3.0.1
info:
  title: Turso Platform API
  description: API description here
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.turso.tech
    description: Turso's Platform API
security: []
paths:
  /v2/organizations/{organizationSlug}/invites/{email}:
    delete:
      summary: Delete Invite
      description: Delete a pending invite for the organization by email.
      operationId: deleteOrganizationInviteByEmailV2
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
        - in: path
          name: email
          required: true
          schema:
            type: string
            description: The email of the user invited.
            example: iku@turso.tech
      responses:
        '200':
          description: Successful response (No Content)
        '404':
          description: Invite not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: invite not found
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: The slug of the organization or user account.
同步自官方 Turso 文件倉庫 ( tursodatabase/turso-docs · MIT 開源授權) 檢視官方原文 ↗
搜尋
按 Esc 關閉 · 由 Pagefind 靜態索引驅動