# Unbind Asset Tags POST https://api.trebellar.app/api/v2/assets/tags/unbind Content-Type: application/json Unbind one or more asset tags from a specific asset. Reference: https://docs.trebellar.app/api-reference/api-resources/assets/unbind-asset-tags ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Unbind Asset Tags version: endpoint_assets.unbindAssetTags paths: /api/v2/assets/tags/unbind: post: operationId: unbind-asset-tags summary: Unbind Asset Tags description: Unbind one or more asset tags from a specific asset. tags: - - subpackage_assets parameters: - name: X-Trebellar-Api-Key in: header required: true schema: type: string responses: '200': description: Asset tags unbound successfully content: application/json: schema: $ref: '#/components/schemas/UnbindAssetTagsResponse' requestBody: content: application/json: schema: $ref: '#/components/schemas/UnbindAssetTagsRequest' components: schemas: UnbindAssetTagsRequest: type: object properties: assetId: type: string assetTagIds: type: array items: type: string required: - assetId - assetTagIds UnbindAssetTagsResponseData: type: object properties: {} UnbindAssetTagsResponse: type: object properties: data: $ref: '#/components/schemas/UnbindAssetTagsResponseData' required: - data ``` ## SDK Code Examples ```typescript import { TrebellarApiClient } from "@trebellar/api-sdk"; async function main() { const client = new TrebellarApiClient({ environment: "https://api.trebellar.app", }); await client.assets.unbindAssetTags({ assetId: "string", assetTagIds: [ "string", ], }); } main(); ``` ```python from trebellar import TrebellarApi client = TrebellarApi( base_url="https://api.trebellar.app", api_key= ) client.assets.unbind_asset_tags( asset_id="string", asset_tag_ids=[ "string" ] ) ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.trebellar.app/api/v2/assets/tags/unbind" payload := strings.NewReader("{\n \"assetId\": \"string\",\n \"assetTagIds\": [\n \"string\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-Trebellar-Api-Key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.trebellar.app/api/v2/assets/tags/unbind") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["X-Trebellar-Api-Key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"assetId\": \"string\",\n \"assetTagIds\": [\n \"string\"\n ]\n}" response = http.request(request) puts response.read_body ``` ```java HttpResponse response = Unirest.post("https://api.trebellar.app/api/v2/assets/tags/unbind") .header("X-Trebellar-Api-Key", "") .header("Content-Type", "application/json") .body("{\n \"assetId\": \"string\",\n \"assetTagIds\": [\n \"string\"\n ]\n}") .asString(); ``` ```php request('POST', 'https://api.trebellar.app/api/v2/assets/tags/unbind', [ 'body' => '{ "assetId": "string", "assetTagIds": [ "string" ] }', 'headers' => [ 'Content-Type' => 'application/json', 'X-Trebellar-Api-Key' => '', ], ]); echo $response->getBody(); ``` ```csharp var client = new RestClient("https://api.trebellar.app/api/v2/assets/tags/unbind"); var request = new RestRequest(Method.POST); request.AddHeader("X-Trebellar-Api-Key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"assetId\": \"string\",\n \"assetTagIds\": [\n \"string\"\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "X-Trebellar-Api-Key": "", "Content-Type": "application/json" ] let parameters = [ "assetId": "string", "assetTagIds": ["string"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.trebellar.app/api/v2/assets/tags/unbind")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```