{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorRsp":{"description":"请求失败错误响应体","properties":{"code":{"description":"错误码","example":"SecMaster.20040001","maxLength":64,"minLength":0,"type":"string"},"message":{"description":"错误描述","example":"Parameter error.","maxLength":1024,"minLength":0,"type":"string"}}},"ModifyPlaybookInfo":{"description":"Information of playbook","example":{"active_version_id":"active_version_id","description":"This my XXXX","enabled":false,"name":"MyXXX"},"properties":{"active_version_id":{"description":"启用的剧本版本ID","example":"active_version_id","maxLength":64,"minLength":32,"type":"string"},"description":{"description":"描述","example":"This my XXXX","maxLength":1024,"minLength":0,"type":"string"},"enabled":{"description":"是否启用","example":true,"type":"boolean"},"name":{"description":"剧本名称","example":"MyXXX","maxLength":1024,"minLength":0,"type":"string"}}},"PlaybookInfo":{"description":"剧本详情信息","properties":{"approve_role":{"description":"审核用户角色","example":"approve","maxLength":64,"minLength":0,"type":"string"},"create_time":{"description":"剧本创建时间","example":"2021-01-30T23:00:00Z+0800","maxLength":64,"minLength":0,"type":"string"},"dataclass_id":{"description":"数据类ID","maxLength":64,"minLength":1,"type":"string"},"dataclass_name":{"description":"数据类名称","maxLength":64,"minLength":0,"type":"string"},"description":{"description":"描述信息","example":"This my XXXX","maxLength":1024,"minLength":0,"type":"string"},"edit_role":{"description":"编辑用户角色","example":"editor","maxLength":64,"minLength":0,"type":"string"},"enabled":{"description":"是否启用","example":true,"type":"boolean"},"id":{"description":"剧本ID","example":"909494e3-558e-46b6-a9eb-07a8e18ca62f","maxLength":64,"minLength":32,"type":"string"},"name":{"description":"剧本名称","example":"MyXXX","maxLength":1024,"minLength":0,"type":"string"},"owner_id":{"description":"所有者ID","example":"909494e3-558e-46b6-a9eb-07a8e18ca62f","maxLength":64,"minLength":32,"type":"string"},"project_id":{"description":"项目ID","example":"909494e3-558e-46b6-a9eb-07a8e18ca62f","maxLength":64,"minLength":32,"type":"string"},"reject_version_id":{"description":"已驳回剧本版本ID","maxLength":64,"minLength":1,"type":"string"},"unaudited_version_id":{"description":"待审核剧本版本ID","maxLength":64,"minLength":1,"type":"string"},"update_time":{"description":"剧本更新时间","example":"2021-01-30T23:00:00Z+0800","maxLength":64,"minLength":0,"type":"string"},"user_role":{"description":"用户角色","maxLength":64,"minLength":0,"type":"string"},"version":{"description":"版本号","example":"v1","maxLength":64,"minLength":32,"type":"string"},"version_id":{"description":"剧本版本ID","example":"909494e3-558e-46b6-a9eb-07a8e18ca62f","maxLength":64,"minLength":32,"type":"string"},"workspace_id":{"description":"工作空间ID","maxLength":64,"minLength":32,"type":"string"}}},"PlaybookInfoDetail":{"description":"剧本详情","example":{"code":0,"data":{"approve_role":"approve","create_time":"2021-01-30T23:00:00Z+0800","dataclass_id":"string","dataclass_name":"string","description":"This my XXXX","edit_role":"editor","enabled":true,"id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","name":"MyXXX","owner_id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","project_id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","reject_version_id":"string","unaudited_version_id":"string","update_time":"2021-01-30T23:00:00Z+0800","user_role":"string","version":"v1.1.1","version_id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","workspace_id":"string"},"message":"Error message"},"properties":{"code":{"description":"错误码","example":0,"maxLength":32,"minLength":1,"readOnly":true,"type":"string"},"data":{"$ref":"#/definitions/PlaybookInfo"},"message":{"description":"错误信息","example":"Error message","maxLength":32,"minLength":1,"readOnly":true,"type":"string"}}}},"description":null,"group_id":"705709df764d40488141daec53da8672","host":"secmaster.cn-north-4.myhuaweicloud.com","id":"2db0a1974cd7452080c80dd51afc6b1d","info_version":"v2","method":"put","name":"UpdatePlaybook","parameters":{},"paths":{"/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}":{"put":{"description":"修改剧本","operationId":"UpdatePlaybook","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2097152,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"default":"application/json;charset=UTF-8","description":"application/json;charset=UTF-8","in":"header","maxLength":64,"minLength":1,"name":"content-type","required":true,"type":"string"},{"description":"项目ID","in":"path","maxLength":36,"minLength":32,"name":"project_id","required":true,"type":"string"},{"description":"工作空间ID","in":"path","maxLength":36,"minLength":32,"name":"workspace_id","required":true,"type":"string"},{"description":"剧本ID","in":"path","maxLength":64,"minLength":32,"name":"playbook_id","required":true,"type":"string"},{"description":"更新剧本请求参数","in":"body","name":"UpdatePlaybookRequestBody","required":false,"schema":{"$ref":"#/definitions/ModifyPlaybookInfo"}}],"produces":["application/json"],"responses":{"200":{"description":"请求成功响应信息","examples":{"application/json":{"code":0,"data":{"approve_role":"approve","create_time":"2021-01-30T23:00:00Z+0800","dataclass_id":"string","dataclass_name":"string","description":"This my XXXX","edit_role":"editor","enabled":true,"id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","name":"MyXXX","owner_id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","project_id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","reject_version_id":"string","unaudited_version_id":"string","update_time":"2021-01-30T23:00:00Z+0800","user_role":"string","version":"v1.1.1","version_id":"909494e3-558e-46b6-a9eb-07a8e18ca62f","workspace_id":"string"},"message":"Error message"}},"headers":{"X-request-id":{"description":"请求ID,格式为:request_uuid-timestamp-hostname","type":"string"}},"schema":{"$ref":"#/definitions/PlaybookInfoDetail"}},"400":{"description":"请求失败响应信息","headers":{"X-request-id":{"description":"请求ID,格式为:request_uuid-timestamp-hostname","type":"string"}},"schema":{"$ref":"#/definitions/ErrorRsp"}}},"summary":"修改剧本","tags":["剧本管理"],"x-is-registered":"N","x-request-examples-1":{"active_version_id":"active_version_id","description":"This my XXXX","enabled":true,"name":"MyXXX"},"x-request-examples-description-1":"修改一个剧本,剧本名称为MyXXX,描述信息为This my XXXX,开启状态为已开启,启用剧本ID为active_version_id。","x-support-sdk":"Y","x-surpport-apiexplorer":true}}},"product_short":"SecMaster","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改剧本","tags":"剧本管理","uri":null,"version":"2.0"}