그룹 설정 업데이트
조직이나 사용자 계정에 속한 그룹의 설정을 바꾸는 API예요. 대표적으로 그룹의 삭제 보호(delete_protection)를 켜고 끌 수 있어요.
출처: 문서
본문
조직이나 사용자에 속한 그룹 설정을 업데이트해요.
curl -L -X PATCH 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups/{groupName}/configuration' \
-H 'Authorization: Bearer ***' \
-H 'Content-Type: application/json' \
-d '{
"delete_protection": true
}'
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:
patch:
summary: Update Group Configuration
description: Update a group configuration belonging to the organization or user.
operationId: updateGroupConfiguration
parameters:
- $ref: '#/components/parameters/organizationSlug'
- $ref: '#/components/parameters/groupName'
requestBody:
description: The configuration to be applied to the chosen group.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GroupConfigurationInput'
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:
GroupConfigurationInput:
type: object
properties:
delete_protection:
type: boolean
description: Prevent the group from being deleted.
example: true
GroupConfigurationResponse:
type: object
properties:
delete_protection:
type: boolean
description: Prevent the group from being deleted.
example: true