/
Update Tag

Update Tag

등록된 Tag에 대한 정보를 변경한다. 변경할 tag의 이름을 name 필드에 설정하고, 변경할 정보를 해당하는 “col_name” 및 “value” 필드에 지정하여 json arry로 설정한 후 호출하여야 한다.

HTTP Request

PUT https://${CloudVendor}.${CountryCode}.machlake.com/lakes/${lake_id}/tags Content-Type: application/json; charset=utf8 x-api-key: {API Key} { "name" : "{original tag name}", "columns" : [{ "col_name" : "{column_name}", "value" : "{value to be changed}" }, .... ] }

Parameters

no parameters

Request Example

PUT https://aws1.us.machlake.com/lakes/xbacd1234/tags Content-Type: application/json; charset=utf8 x-api-key: {API Key} { "name" : "newtag01", "columns" : [{ "col_name" : "name", "value" : "changetag01"}] }

Response Example

Status 200 { "status": "success", "data": { "name": "changetag01" } }

Sample Code

이 예제에서, sensor1, sensor2의 tag가 사전에 생성되어 있는 것을 가정한다. 해당 tag가 없으면 오류로 처리된다.