> This page is for Schema Service, version v3 (latest) (default).
> For other versions, use one of these documentation indexes:
> - v3 (latest) (default): https://autodesk.ferndocs.com/schema/schema-service/v3/llms.txt
> - v2: https://autodesk.ferndocs.com/schema/schema-service/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://autodesk.ferndocs.com/schema/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://autodesk.ferndocs.com/schema/_mcp/server.

# Create Tags

POST https://developer-stg.api.autodesk.com/schema/v3/tag-collections/{tagCollectionId}/tags
Content-Type: application/json

Creates one or more of Tags for the Tag Collection specified by the `tagCollectionId` URI parameter.

You must have ` write` access to the Tag Collection to be able to create Tags for that Tag Collection. For more information  see \`\`Control Access \</en/docs/schema/v3/developers\_guide/basics/access/>\`\_.

Reference: https://autodesk.ferndocs.com/schema/schema-service/api-reference/tags-api/tags/create-tags

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://developer-stg.api.autodesk.com/schema/v3` (The URL for Staging environment, default)
- `https://developer-dev.api.autodesk.com/schema/v3` (The URL for Development environment)
- `https://developer.api.autodesk.com/schema/v3` (The URL for Production environment)

## Request

### Path parameters

- `tagCollectionId` (string, required)

### Headers

- `Region` (enum, optional, default: US) — The Autodesk Schema Registry currently supports in the US and EMEA regions. This header specifies where your data is stored. Possible Values: - ``US`` - (Default) All requests without a specified region header will be directed to the US region. - ``EMEA`` - Data center for the European Union, Middle East, and Africa. To access the EMEA region specifically, include the header "region: EMEA" in your API requests.
  - Allowed values: `US`, `EMEA`

### Body (application/json)

This endpoint expects a list of TagRequest.

- `list of TagRequest`

## Response

### 207

Multiple operations have been attempted and a single response code is not able to convey the results of all operations. Check the response body for failures, if any. Every successful operation contains a system-generated id attribute for the categories created. Failed operations contain an errors object.

- `list of TagCollectionsTagCollectionIdTagsPostResponsesContentApplicationJsonSchemaItems`

## Errors

### 400 Bad Request Error

The Autodesk Schema Registry was not able to decipher your request. Check the request body for malformed request syntax or invalid request message framing before you try again.

- `type` (string, optional) — UTF-8 encoded string
- `title` (string, optional) — UTF-8 encoded string
- `detail` (string, optional) — User-friendly error message.
- `errors` (list of ErrorDetail, optional) — This property will contains relevant error details.

### 401 Unauthorized Error

The request did not have a valid access token. Obtain a fresh access token and try again.

- `type` (string, optional) — UTF-8 encoded string
- `title` (string, optional) — UTF-8 encoded string
- `detail` (string, optional) — User-friendly error message.
- `errors` (list of ErrorDetail, optional) — This property will contains relevant error details.

### 403 Forbidden Error

You do not have permission to perform the operation specified by the request. Contact your LIBRARY_ADMIN and resolve any permission issues before trying this request again.

- `type` (string, optional) — UTF-8 encoded string
- `title` (string, optional) — UTF-8 encoded string
- `detail` (string, optional) — User-friendly error message.
- `errors` (list of ErrorDetail, optional) — This property will contains relevant error details.

### 429 Too Many Requests Error

You have exceeded the Rate Limit for the requested resource. Check the ``retry-after`` response header and send the request again, after the specified time period has elapsed.

- `type` (string, optional) — UTF-8 encoded string
- `title` (string, optional) — UTF-8 encoded string
- `detail` (string, optional) — User-friendly error message.
- `errors` (list of ErrorDetail, optional) — This property will contains relevant error details.

## Types

### TagRequest

- `name` (string, required) — The name of the Tag.
- `categoryId` (string, optional) — The ID of the Tag Category this Tag must belong to. If you do not specify a category, the Tag will belong to the default category. The default category was created when the Tag Collection was created.
- `userData` (map from string to TagRequestUserData, optional) — A JSON object of user-defined schema containing custom data for the Tag. The only validation the system performs on this object is to make sure that it is a valid JSON object.

### TagCollectionsTagCollectionIdTagsPostResponsesContentApplicationJsonSchemaItems

- `categoryId` (string, optional) — The ID of the Category this Tag belongs to.
- `createTime` (datetime, optional) — A TimeISO 8601 Timestamp in UTC Timezone indicating when the Tag was created.
- `createdBy` (string, optional) — If a three-legged access token was used to create the Tag, contains the Autodesk ID (Oxygen ID) of the person who created it. If a two-legged access token was used to create the Tag, contains the Client ID of the app that created it.
- `errors` (list of ErrorDetail, optional)
- `id` (string, optional) — A system-generated ID to uniquely identify the Tag.
- `lastModifiedBy` (string, optional) — If a three-legged access token was used to modify the Tag, contains the Autodesk ID (Oxygen ID) of the person who modified it. If a two-legged access token was used to modify the Tag, contains the Client ID of the app that modified it.
- `lastModifiedTime` (datetime, optional) — A TimeISO 8601 Timestamp in UTC Timezone indicating when the Tag was last modified.
- `name` (string, optional) — The name of the Tag.
- `userData` (map from string to TagUserData, optional) — A container for user-defined custom data.

### ErrorDetail

Error response model according to the APS standard

- `type` (string, optional) — Specifies the type of the error that occured.
- `title` (string, optional) — Contains a summary of the error.
- `detail` (string, optional) — Contains a detailed description of the error that occured, and sometimes, tips on how to fix the error.

### TagRequestUserData

Key-value pairs of custom data.

### TagUserData

Key-value pairs of custom data.

## Examples

### Standard

**Request**

```json
[
  {
    "name": "Doors",
    "categoryId": "ABVA-49091-CGZP-54734"
  },
  {
    "name": "Windows",
    "categoryId": "ABVA-49091-CGZP-54734"
  },
  {
    "name": "Geometry",
    "categoryId": "ABVA-49091-CHJS-26259"
  },
  {
    "name": "Identity",
    "categoryId": "ABVA-49091-CHJS-26259"
  }
]
```

**Response**

```json
[
  {
    "categoryId": "ABVA-48259-GLHQ-33012",
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVQ-50269-HQFB-82562",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Doors"
  },
  {
    "categoryId": "ABVA-48259-GLHQ-33012",
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVA-49091-CGZP-54734",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Windows"
  }
]
```

**SDK Code**

```python Standard
import requests

url = "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

payload = [
    {
        "name": "Doors",
        "categoryId": "ABVA-49091-CGZP-54734"
    },
    {
        "name": "Windows",
        "categoryId": "ABVA-49091-CGZP-54734"
    },
    {
        "name": "Geometry",
        "categoryId": "ABVA-49091-CHJS-26259"
    },
    {
        "name": "Identity",
        "categoryId": "ABVA-49091-CHJS-26259"
    }
]
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Standard
const url = 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '[{"name":"Doors","categoryId":"ABVA-49091-CGZP-54734"},{"name":"Windows","categoryId":"ABVA-49091-CGZP-54734"},{"name":"Geometry","categoryId":"ABVA-49091-CHJS-26259"},{"name":"Identity","categoryId":"ABVA-49091-CHJS-26259"}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Standard
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

	payload := strings.NewReader("[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	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 Standard
require 'uri'
require 'net/http'

url = URI("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java Standard
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  }\n]")
  .asString();
```

```php Standard
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags', [
  'body' => '[
  {
    "name": "Doors",
    "categoryId": "ABVA-49091-CGZP-54734"
  },
  {
    "name": "Windows",
    "categoryId": "ABVA-49091-CGZP-54734"
  },
  {
    "name": "Geometry",
    "categoryId": "ABVA-49091-CHJS-26259"
  },
  {
    "name": "Identity",
    "categoryId": "ABVA-49091-CHJS-26259"
  }
]',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Standard
using RestSharp;

var client = new RestClient("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\"\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\"\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Standard
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  [
    "name": "Doors",
    "categoryId": "ABVA-49091-CGZP-54734"
  ],
  [
    "name": "Windows",
    "categoryId": "ABVA-49091-CGZP-54734"
  ],
  [
    "name": "Geometry",
    "categoryId": "ABVA-49091-CHJS-26259"
  ],
  [
    "name": "Identity",
    "categoryId": "ABVA-49091-CHJS-26259"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")! 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()
```

### No Category

**Response**

```json
[
  {
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVQ-50269-HQFB-82562",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Doors"
  },
  {
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVA-49091-CGZP-54734",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Windows"
  }
]
```

**SDK Code**

```python No Category
import requests

url = "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript No Category
const url = 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go No Category
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby No Category
require 'uri'
require 'net/http'

url = URI("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java No Category
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php No Category
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp No Category
using RestSharp;

var client = new RestClient("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift No Category
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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()
```

### Tag with User Data and Mix of Category

**Request**

```json
[
  {
    "name": "Doors",
    "categoryId": "ABVA-49091-CGZP-54734",
    "userData": {
      "translations": {
        "ja-JP": "ドア"
      },
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "name": "Windows",
    "categoryId": "ABVA-49091-CGZP-54734",
    "userData": {
      "translations": {
        "ja-JP": "ウィンドウズ"
      },
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "name": "Geometry",
    "categoryId": "ABVA-49091-CHJS-26259",
    "userData": {
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "name": "Identity",
    "categoryId": "ABVA-49091-CHJS-262593",
    "userData": {
      "translations": {
        "id-ID": "Identitas"
      },
      "visible": true
    }
  },
  {
    "name": "[No Category] Tag #1",
    "userData": {
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.",
      "ui": {
        "background": "FFFFFF",
        "foreground": "000000"
      }
    }
  }
]
```

**Response**

```json
[
  {
    "categoryId": "ABVA-48259-GLHQ-33012",
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVQ-50269-HQFB-82562",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Doors",
    "userData": {
      "translations": {
        "ja-JP": "ドア"
      },
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "categoryId": "ABVA-48259-GLHQ-33012",
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVA-49091-CGZP-54734",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Windows",
    "userData": {
      "translations": {
        "ja-JP": "ウィンドウズ"
      },
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVQ-50269-HQFB-12643",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "[No Category] Tag #1",
    "userData": {
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.",
      "ui": {
        "background": "FFFFFF",
        "foreground": "000000"
      }
    }
  }
]
```

**SDK Code**

```python Tag with User Data and Mix of Category
import requests

url = "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

payload = [
    {
        "name": "Doors",
        "categoryId": "ABVA-49091-CGZP-54734",
        "userData": {
            "translations": { "ja-JP": "ドア" },
            "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
        }
    },
    {
        "name": "Windows",
        "categoryId": "ABVA-49091-CGZP-54734",
        "userData": {
            "translations": { "ja-JP": "ウィンドウズ" },
            "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
        }
    },
    {
        "name": "Geometry",
        "categoryId": "ABVA-49091-CHJS-26259",
        "userData": { "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible." }
    },
    {
        "name": "Identity",
        "categoryId": "ABVA-49091-CHJS-262593",
        "userData": {
            "translations": { "id-ID": "Identitas" },
            "visible": True
        }
    },
    {
        "name": "[No Category] Tag #1",
        "userData": {
            "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.",
            "ui": {
                "background": "FFFFFF",
                "foreground": "000000"
            }
        }
    }
]
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Tag with User Data and Mix of Category
const url = 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '[{"name":"Doors","categoryId":"ABVA-49091-CGZP-54734","userData":{"translations":{"ja-JP":"ドア"},"description":"This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible."}},{"name":"Windows","categoryId":"ABVA-49091-CGZP-54734","userData":{"translations":{"ja-JP":"ウィンドウズ"},"description":"This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible."}},{"name":"Geometry","categoryId":"ABVA-49091-CHJS-26259","userData":{"description":"This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible."}},{"name":"Identity","categoryId":"ABVA-49091-CHJS-262593","userData":{"translations":{"id-ID":"Identitas"},"visible":true}},{"name":"[No Category] Tag #1","userData":{"description":"This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible.","ui":{"background":"FFFFFF","foreground":"000000"}}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Tag with User Data and Mix of Category
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

	payload := strings.NewReader("[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ドア\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ウィンドウズ\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-262593\",\n    \"userData\": {\n      \"translations\": {\n        \"id-ID\": \"Identitas\"\n      },\n      \"visible\": true\n    }\n  },\n  {\n    \"name\": \"[No Category] Tag #1\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\",\n      \"ui\": {\n        \"background\": \"FFFFFF\",\n        \"foreground\": \"000000\"\n      }\n    }\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	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 Tag with User Data and Mix of Category
require 'uri'
require 'net/http'

url = URI("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ドア\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ウィンドウズ\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-262593\",\n    \"userData\": {\n      \"translations\": {\n        \"id-ID\": \"Identitas\"\n      },\n      \"visible\": true\n    }\n  },\n  {\n    \"name\": \"[No Category] Tag #1\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\",\n      \"ui\": {\n        \"background\": \"FFFFFF\",\n        \"foreground\": \"000000\"\n      }\n    }\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java Tag with User Data and Mix of Category
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ドア\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ウィンドウズ\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-262593\",\n    \"userData\": {\n      \"translations\": {\n        \"id-ID\": \"Identitas\"\n      },\n      \"visible\": true\n    }\n  },\n  {\n    \"name\": \"[No Category] Tag #1\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\",\n      \"ui\": {\n        \"background\": \"FFFFFF\",\n        \"foreground\": \"000000\"\n      }\n    }\n  }\n]")
  .asString();
```

```php Tag with User Data and Mix of Category
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags', [
  'body' => '[
  {
    "name": "Doors",
    "categoryId": "ABVA-49091-CGZP-54734",
    "userData": {
      "translations": {
        "ja-JP": "ドア"
      },
      "description": "This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "name": "Windows",
    "categoryId": "ABVA-49091-CGZP-54734",
    "userData": {
      "translations": {
        "ja-JP": "ウィンドウズ"
      },
      "description": "This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "name": "Geometry",
    "categoryId": "ABVA-49091-CHJS-26259",
    "userData": {
      "description": "This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible."
    }
  },
  {
    "name": "Identity",
    "categoryId": "ABVA-49091-CHJS-262593",
    "userData": {
      "translations": {
        "id-ID": "Identitas"
      },
      "visible": true
    }
  },
  {
    "name": "[No Category] Tag #1",
    "userData": {
      "description": "This is the description for this Tag. Although there\'s no limit on the amount of characters but it is best practice to keep it as concise as possible.",
      "ui": {
        "background": "FFFFFF",
        "foreground": "000000"
      }
    }
  }
]',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Tag with User Data and Mix of Category
using RestSharp;

var client = new RestClient("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"name\": \"Doors\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ドア\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Windows\",\n    \"categoryId\": \"ABVA-49091-CGZP-54734\",\n    \"userData\": {\n      \"translations\": {\n        \"ja-JP\": \"ウィンドウズ\"\n      },\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Geometry\",\n    \"categoryId\": \"ABVA-49091-CHJS-26259\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\"\n    }\n  },\n  {\n    \"name\": \"Identity\",\n    \"categoryId\": \"ABVA-49091-CHJS-262593\",\n    \"userData\": {\n      \"translations\": {\n        \"id-ID\": \"Identitas\"\n      },\n      \"visible\": true\n    }\n  },\n  {\n    \"name\": \"[No Category] Tag #1\",\n    \"userData\": {\n      \"description\": \"This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.\",\n      \"ui\": {\n        \"background\": \"FFFFFF\",\n        \"foreground\": \"000000\"\n      }\n    }\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Tag with User Data and Mix of Category
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  [
    "name": "Doors",
    "categoryId": "ABVA-49091-CGZP-54734",
    "userData": [
      "translations": ["ja-JP": "ドア"],
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    ]
  ],
  [
    "name": "Windows",
    "categoryId": "ABVA-49091-CGZP-54734",
    "userData": [
      "translations": ["ja-JP": "ウィンドウズ"],
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."
    ]
  ],
  [
    "name": "Geometry",
    "categoryId": "ABVA-49091-CHJS-26259",
    "userData": ["description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible."]
  ],
  [
    "name": "Identity",
    "categoryId": "ABVA-49091-CHJS-262593",
    "userData": [
      "translations": ["id-ID": "Identitas"],
      "visible": true
    ]
  ],
  [
    "name": "[No Category] Tag #1",
    "userData": [
      "description": "This is the description for this Tag. Although there's no limit on the amount of characters but it is best practice to keep it as concise as possible.",
      "ui": [
        "background": "FFFFFF",
        "foreground": "000000"
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")! 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()
```

### No Category Specified (Set to Default Category)

**Request**

```json
[
  {
    "name": "Tag 1"
  },
  {
    "name": "Tag 2"
  },
  {
    "name": "Tag 3"
  }
]
```

**Response**

```json
[
  {
    "categoryId": "ABVA-48259-GLHQ-33012",
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVQ-50269-HQFB-82562",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Doors"
  },
  {
    "categoryId": "ABVA-48259-GLHQ-33012",
    "createTime": "2021-06-25T03:13:31Z",
    "createdBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "id": "ABVA-49091-CGZP-54734",
    "lastModifiedBy": "9seCG8QKLVnwwYSFsmdu23L0y4WO1MEH",
    "lastModifiedTime": "2021-06-25T03:13:31Z",
    "name": "Windows"
  }
]
```

**SDK Code**

```python No Category Specified (Set to Default Category)
import requests

url = "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

payload = [{ "name": "Tag 1" }, { "name": "Tag 2" }, { "name": "Tag 3" }]
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript No Category Specified (Set to Default Category)
const url = 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '[{"name":"Tag 1"},{"name":"Tag 2"},{"name":"Tag 3"}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go No Category Specified (Set to Default Category)
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags"

	payload := strings.NewReader("[\n  {\n    \"name\": \"Tag 1\"\n  },\n  {\n    \"name\": \"Tag 2\"\n  },\n  {\n    \"name\": \"Tag 3\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	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 No Category Specified (Set to Default Category)
require 'uri'
require 'net/http'

url = URI("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"name\": \"Tag 1\"\n  },\n  {\n    \"name\": \"Tag 2\"\n  },\n  {\n    \"name\": \"Tag 3\"\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java No Category Specified (Set to Default Category)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"name\": \"Tag 1\"\n  },\n  {\n    \"name\": \"Tag 2\"\n  },\n  {\n    \"name\": \"Tag 3\"\n  }\n]")
  .asString();
```

```php No Category Specified (Set to Default Category)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags', [
  'body' => '[
  {
    "name": "Tag 1"
  },
  {
    "name": "Tag 2"
  },
  {
    "name": "Tag 3"
  }
]',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp No Category Specified (Set to Default Category)
using RestSharp;

var client = new RestClient("https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"name\": \"Tag 1\"\n  },\n  {\n    \"name\": \"Tag 2\"\n  },\n  {\n    \"name\": \"Tag 3\"\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift No Category Specified (Set to Default Category)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [["name": "Tag 1"], ["name": "Tag 2"], ["name": "Tag 3"]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://developer-stg.api.autodesk.com/schema/v3/tag-collections/tagCollectionId/tags")! 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()
```