본문 바로가기
WIKI 기술 지식 베이스

초대 삭제

원문 보기 위키 갱신

조직의 대기 중인 초대를 이메일로 삭제하는 API예요. 잘못 보냈거나 더는 유효하지 않은 초대를 정리할 때 사용해요.

출처: 문서

본문

조직의 대기 중인 초대를 이메일로 삭제해요.

Warning: 초대는 Scaler 플랜 이상에서만 사용할 수 있어요.

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

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

await turso.organizations.deleteInvite("[email protected]");

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: [email protected]
      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.

더 알아보기 (Learn more)