{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ApproverParam":{"example":{"approver_name":"test02","email":"abdf@xxx.com","email_notify":true,"phone_number":"18700645123","sms_notify":true,"user_id":"bff6a1286d26402197ca5a70136fb326"},"properties":{"app_name":{"description":"调用审核系统的应用名称,开发人员自己定。","type":"string"},"approver_name":{"description":"审批人姓名。","maxLength":100,"type":"string"},"email":{"description":"邮箱地址。","maxLength":500,"pattern":"^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$","type":"string"},"email_notify":{"default":true,"description":"邮件通知。","type":"boolean"},"phone_number":{"description":"电话号码。","type":"string"},"sms_notify":{"default":true,"description":"短信通知。","type":"boolean"},"user_id":{"description":"审批人ID。","type":"string"}},"required":["approver_name","user_id"],"type":"object"},"ApproverVO":{"properties":{"app_name":{"description":"业务系统名称。","type":"string"},"approver_name":{"description":"审批人姓名。","maxLength":20,"type":"string"},"create_by":{"description":"创建人。","type":"string"},"create_time":{"description":"创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。","type":"string"},"email":{"description":"email信息。","type":"string"},"id":{"description":"审批单ID,ID字符串。","type":"string"},"phone_number":{"description":"电话号码。","type":"string"},"project_id":{"description":"项目ID。","type":"string"},"topic_urn":{"description":"smn主题urn。","type":"string"},"user_id":{"description":"审批人ID。","type":"string"},"user_name":{"description":"审批人名称。","type":"string"},"user_type":{"description":"用户类型。\n枚举值:\n - BIZ_METRIC_OWNER: 业务指标责任人\n - APPROVER: 审批人\n - BIZ_METRIC_OWNER_AND_APPROVER: 业务指标责任人是审核人","enum":["BIZ_METRIC_OWNER","APPROVER","BIZ_METRIC_OWNER_AND_APPROVER"],"type":"string"}},"type":"object"},"CreateApproverResult":{"description":"创建审批人,创建结果。","properties":{"data":{"description":"data,统一的返回结果的最外层数据结构。","properties":{"value":{"$ref":"#/definitions/ApproverVO","description":"value,统一的返回结果的外层数据结构。","type":"object"}},"type":"object"}},"type":"object"}},"description":null,"group_id":"23bb69798aaf409da161a43a90617121","host":"dayu.cn-north-4.myhuaweicloud.com","id":"e3a251389ad44814b460ae513a367602","info_version":"v1","method":"post","name":"CreateApprover","parameters":{"contextTypeParam":{"description":"默认值:application/json;charset=UTF-8\n可选,有Body体的情况下必选,没有Body体则无需填写和校验。","in":"header","maxLength":64,"minLength":3,"name":"Content-Type","required":false,"type":"string"},"tenantIdParam":{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。","in":"path","maxLength":64,"minLength":3,"name":"project_id","required":true,"type":"string"},"tenantXIdParam":{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。\n\n多project场景采用AK/SK认证的接口请求,则该字段必选。","in":"header","maxLength":64,"minLength":3,"name":"X-Project-Id","required":false,"type":"string"},"tokenParam":{"description":"IAM Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)\n使用Token认证时必选。","in":"header","maxLength":4096,"minLength":0,"name":"X-Auth-Token","required":true,"type":"string"},"workspaceParam":{"description":"工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。","in":"header","maxLength":64,"minLength":3,"name":"workspace","required":true,"type":"string"}},"paths":{"/v2/{project_id}/design/approvals/users":{"post":{"consumes":["application/json"],"description":"创建审批人。","operationId":"CreateApprover","parameters":[{"$ref":"#/parameters/tokenParam"},{"$ref":"#/parameters/workspaceParam"},{"$ref":"#/parameters/tenantIdParam"},{"$ref":"#/parameters/tenantXIdParam"},{"$ref":"#/parameters/contextTypeParam"},{"description":"approver","in":"body","name":"CreateApproverRequestBody","required":true,"schema":{"$ref":"#/definitions/ApproverParam"}}],"produces":["application/json"],"responses":{"200":{"description":"Success,返回data数据是ApproverVO。","schema":{"$ref":"#/definitions/CreateApproverResult"}},"400":{"$ref":"#/responses/400"},"401":{"$ref":"#/responses/401"},"403":{"$ref":"#/responses/403"},"404":{"$ref":"#/responses/404"}},"summary":"创建审批人","tags":["审批管理接口"],"x-api-type":"doc-open","x-is-registered":"Y","x-request-examples-1":{"app_name":"dlg-ds","approver_name":"ei_dayu_y00321344_01","email":"88664488@hw.com","email_notify":true,"phone_number":"17775558866","sms_notify":true,"user_id":"0833a573fe80d5401f6dc010a775569a"},"x-request-examples-description-1":"根据请求参数创建审批人。","x-request-examples-url-1":"POST https://{endpoint}/v2/{project_id}/design/approvals/users?from=standard","x-support-sdk":"Y"}}},"product_short":"DataArtsStudio","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建审批人","tags":"审批管理接口","uri":null,"version":"2.0"}