# 重置主要 App 证书 (/zh-CN/api-reference/api-ref/console/reset-primary-app-certificate) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). 重置指定项目的主要 App 证书。 - OpenAPI: /openapi/console/rest-api.zh-CN.yaml - Operation ID: post-dev-v1-reset_signkey - Method: POST - Path: /dev/v1/reset_signkey - Endpoint: https://api.sd-rtn.com/dev/v1/reset_signkey ## Servers - https://api.sd-rtn.com :::info[说明] - 如果原来的主要 App 证书泄漏了,你可以使用该方法对主要 App 证书进行重置。 - 如果该项目的主要 App 证书尚未启用,调用该方法会启用主要 App 证书。 ::: ## Authorization This endpoint requires authentication. - `Authorization` ## Parameters No parameters. ## Request body - `id` (string, required) - 项目 ID,可以通过调用获取所有项目信息 API 获取。 ### Request body example ```json { "id": "xxxx" } ``` ## Responses ### 201 如果状态码为 201,则请求成功。 - `project` (array) - `project.items` (object) - `project.items.id` (string) - 项目 ID。 - `project.items.name` (string) - 项目名称。 - `project.items.vendor_key` (string) - 项目的 App ID。 - `project.items.status` (number) - 项目状态。 - `1`:启用 - `0`:禁用 - `project.items.created` (number) - 项目的创建时间,Unix 时间戳,单位为秒。 ### 非 201 如果状态码不为 201,请求失败。请根据[响应状态码](response-codes)和 `message` 字段进行排查。 - `status` (string) - 本次请求的状态: - `success`:请求成功。 - `error`:请求失败。 - `message` (string) - 描述请求失败的原因。 ## Response examples ### 201 ```json { "project": [ { "id": "xxxx", "name": "project1", "vendor_key": "4855xxxxxxxxxxxxxxxxxxxxxxxxeae2", "status": 1, "created": 1464165672 } ] } ``` ### 非 201 ```json { "status": "error", "message": "string" } ```