跳转到内容
EN

Amend a department charter (gone)

Code Mode: praxis.workforce.departments.updateCharter

HTTP: PUT /workforce/v1/departments/{id}/charter

Deprecated: use PUT /workforce/v1/specs/department/{id} instead; this path stops working on 2026-11-28. A department’s charter is now the document of its spec, not a field of the department: read it at GET /workforce/v1/specs/department/{id} and replace it with PUT /workforce/v1/specs/department/{id} sending metadata.revision and spec.document. The root department’s charter is the organization’s own spec at /workforce/v1/specs/organization/{organization_id}. Until then this path answers 410 with code DEPARTMENT_CHARTER_GONE and the same instruction.

签名

praxis.workforce.departments.updateCharter(args:{path:{id:string}}):Promise<unknown>;

参数

名称位置类型必填说明
idpathstring是Department id (dept_…) whose charter used to change here.

响应

状态码内容类型说明
410application/problem+jsonDEPARTMENT_CHARTER_GONE; this route was removed in