# 启用或禁用主要 App 证书 (/zh-CN/api-reference/api-ref/console/update-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-signkey - Method: POST - Path: /dev/v1/signkey - Endpoint: https://api.sd-rtn.com/dev/v1/signkey ## Servers - https://api.sd-rtn.com ## Authorization This endpoint requires authentication. - `Authorization` ## Parameters No parameters. ## Request body - `id` (string, required) - 项目 ID,可以通过调用获取所有项目信息 API 获取。 - `enable` (boolean, required) - 是否启用项目的主要 App 证书: - `true`:(默认)启用。 - `false`:不启用。 ### Request body example ```json { "id": "xxxx", "enable": true } ``` ## 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" } ```