meta { name: 启用资源 type: http seq: 5 tags: [ generated ] } post { url: {{baseUrl}}/api/resources/enable body: formUrlEncoded auth: inherit } body:form-urlencoded { id: 1 } docs { # 启用资源 `POST /api/resources/enable` 启用资源(直改 status,幂等)。 ## 请求参数 | 参数 | 类型 | 必填 | 默认 | 说明 | | --- | --- | --- | --- | --- | | id | string | 是 | - | 资源节点 ID | ## 请求示例 请求头:Authorization: Bearer {{token}} Content-Type: application/x-www-form-urlencoded POST /api/resources/enable id=1 ## 响应 data 结构 null ## 响应示例 ```json { "code": 0, "success": true, "message": "success", "data": null } ``` }