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

멤버 제거

원문 보기 위키 갱신

username으로 조직에서 사용자를 제거하는 API예요. 더 이상 팀에 참여하지 않는 멤버를 정리할 때 사용해요.

출처: 문서

본문

username으로 조직에서 사용자를 제거해요.

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

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

const member = await turso.organizations.removeMember("mycompany", "iku");

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:
  /v1/organizations/{organizationSlug}/members/{username}:
    delete:
      summary: Remove Member
      description: Remove a user from the organization by username.
      operationId: removeOrganizationMember
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
        - $ref: '#/components/parameters/username'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  member: a282c446-e86f-4d44-ab92-b0baff74d78e
        '404':
          description: Member not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: The error message
                    example: user [username] is not a member of org [organizationSlug]
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: The slug of the organization or user account.
    username:
      name: username
      in: path
      required: true
      schema:
        type: string
      description: The username of a Turso user or organization member.

더 알아보기 (Learn more)