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

그룹 설정 조회

원문 보기 위키 갱신

조직이나 사용자 계정에 속한 그룹의 설정을 하나 조회하는 API예요. 삭제 보호(delete protection) 같은 그룹 단위 옵션이 어떻게 켜져 있는지 확인할 때 사용해요.

출처: 문서

본문

조직이나 사용자에 속한 개별 그룹 설정을 조회해요.

curl -L -X GET 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups/{groupName}/configuration' \
  -H 'Authorization: Bearer ***'

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}/groups/{groupName}/configuration:
    get:
      summary: Retrieve Group Configuration
      description: >-
        Retrieve an individual group configuration belonging to the organization
        or user.
      operationId: getGroupConfiguration
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
        - $ref: '#/components/parameters/groupName'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupConfigurationResponse'
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: The slug of the organization or user account.
    groupName:
      name: groupName
      in: path
      required: true
      schema:
        type: string
      description: The name of the group.
  schemas:
    GroupConfigurationResponse:
      type: object
      properties:
        delete_protection:
          type: boolean
          description: Prevent the group from being deleted.
          example: true

더 알아보기 (Learn more)