# 取消归档组

> 取消归档因不活跃而被归档的组。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/api-reference/groups/unarchive/
> Upstream Source (MIT): https://docs.turso.tech/api-reference/groups/unarchive
> Language: zh-CN

---
<div class="doc-callout doc-callout-info"><div class="doc-callout-title">注意</div><div class="doc-callout-body">

对于免费套餐用户，数据库在 10 天不活跃后会被归档。你可以使用 API 取消归档不活跃的组。

</div></div>


```bash cURL
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups/{groupName}/unarchive' \
-H 'Authorization: Bearer TOKEN' \
```


## OpenAPI

````yaml POST /v1/organizations/{organizationSlug}/groups/{groupName}/unarchive
openapi: 3.0.1
info:
  title: Turso Platform API
  description: 此处为 API 描述
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.turso.tech
    description: Turso 的平台 API
security: []
paths:
  /v1/organizations/{organizationSlug}/groups/{groupName}/unarchive:
    post:
      summary: 取消归档组
      description: 取消归档因不活跃而被归档的组。
      operationId: unarchiveGroup
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
        - $ref: '#/components/parameters/groupName'
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  group:
                    $ref: '#/components/schemas/Group'
                    description: 已取消归档的组
        '404':
          $ref: '#/components/responses/GroupNotFoundResponse'
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: 组织或用户账户的 slug。
    groupName:
      name: groupName
      in: path
      required: true
      schema:
        type: string
      description: 组的名称。
  schemas:
    Group:
      allOf:
        - $ref: '#/components/schemas/BaseGroup'
        - type: object
    BaseGroup:
      type: object
      properties:
        name:
          type: string
          description: 组名称，在你的组织内唯一。
          example: default
        version:
          type: string
          description: >-
            该组中数据库当前运行的 libSQL 服务器版本。
          example: v0.23.7
          deprecated: true
        uuid:
          type: string
          description: 组的通用唯一标识符（UUID）。
          example: 0a28102d-6906-11ee-8553-eaa7715aeaf2
        locations:
          type: array
          items:
            type: string
          description: 该组所在位置键的数组。
          example:
            - aws-us-east-1
          deprecated: true
        primary:
          type: string
          description: 主位置键。
          example: us-east-1
        delete_protection:
          type: boolean
          description: >-
            删除保护的当前状态。如果启用，该组及其所有数据库均无法删除。
          example: false
  responses:
    GroupNotFoundResponse:
      description: 未找到组
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                description: 错误消息
                example: group not found

````
