{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"TagsResult":{"description":"给表/属性打标签的接口返回结果。","properties":{"data":{"description":"返回的数据信息。","properties":{"value":{"description":"给表/属性打标签/删除标签的接口返回,返回的vale是null则表示成功。","example":null,"type":"string"}},"type":"object"}},"type":"object"}},"description":null,"group_id":"23bb69798aaf409da161a43a90617121","host":"dayu.cn-north-4.myhuaweicloud.com","id":"ef08b7a113594165888d57f895159ab5","info_version":"v1","method":"put","name":"AddDesignEntityTags","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/{entity_id}/tags":{"put":{"description":"根据资产(表或属性)的ID给资产打上标签。","operationId":"AddDesignEntityTags","parameters":[{"$ref":"#/parameters/tokenParam"},{"$ref":"#/parameters/workspaceParam"},{"$ref":"#/parameters/tenantIdParam"},{"$ref":"#/parameters/tenantXIdParam"},{"$ref":"#/parameters/contextTypeParam"},{"description":"表的ID,ID字符串。","in":"path","name":"entity_id","required":true,"type":"string"},{"description":"属性的ID,ID字符串。","in":"query","name":"attr_id","required":false,"type":"string"},{"collectionFormat":"multi","description":"标签名。","in":"query","items":{"type":"string"},"maxItems":20,"minItems":1,"name":"tags","required":true,"type":"array"}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"Success,返回data数据是否成功。","schema":{"$ref":"#/definitions/TagsResult"}},"400":{"$ref":"#/responses/400"},"401":{"$ref":"#/responses/401"},"403":{"$ref":"#/responses/403"}},"summary":"添加标签","tags":["标签接口"],"x-api-type":"doc-open","x-is-registered":"Y","x-request-examples-description-1":"给ID为1217123755210469378的表打标签aaa、bbb。","x-request-examples-description-2":"给ID为1217123755210469378的表中ID为1217123755210469379的属性打标签aaa、bbb。","x-request-examples-url-1":"PUT https://{endpoint}/v2/{project_id}/design/1217123755210469378/tags?tags=bbb&tags=aaa","x-request-examples-url-2":"PUT https://{endpoint}/v2/{project_id}/design/1217123755210469378/tags?attr_id=1217123755210469379&tags=aaa&tags=bbb","x-support-sdk":"Y"}}},"product_short":"DataArtsStudio","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"添加标签","tags":"标签接口","uri":null,"version":"2.0"}