# 禁用或启用项目 (/zh-CN/api-reference/api-ref/console/update-project-status) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). 禁用或启用指定的声网项目。 - OpenAPI: /openapi/console/rest-api.zh-CN.yaml - Operation ID: post-dev-v1-project_status - Method: POST - Path: /dev/v1/project_status - Endpoint: https://api.sd-rtn.com/dev/v1/project_status ## Servers - https://api.sd-rtn.com ## Authorization This endpoint requires authentication. - `Authorization` ## Parameters No parameters. ## Request body - `id` (string, required) - 项目 ID,可以通过调用获取所有项目信息 API 获取。 - `status` (number, required) - 想要设置的项目状态: - `0`:禁用。 - `1`:启用。 ### Request body example ```json { "id": "string", "status": 0 } ``` ## 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" } ```