> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/feature-management-experimentation/split-api-reference/tags.md).

# Tags

## Associate Tags

> Associate tags with an existing feature flag. This endpoint requires a JSON body containing the array of tags to associate with the object.

```json
{"openapi":"3.1.0","info":{"title":"Harness FME Admin API","version":"2"},"tags":[{"name":"Tags"}],"servers":[{"url":"https://api.split.io/internal/api/v2"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Admin API Key, sent as `Authorization: Bearer <ADMIN_API_KEY>`"}}},"paths":{"/tags/ws/{workspace-id}/object/{object-name}/objecttype/{object-type}":{"post":{"summary":"Associate Tags","description":"Associate tags with an existing feature flag. This endpoint requires a JSON body containing the array of tags to associate with the object.","operationId":"associate-tags","parameters":[{"in":"path","name":"workspace-id","schema":{"type":"string"},"required":true,"description":"The ID of the project (workspace) where the object exists. After migration to Harness, get this value using the [Get Projects (Workspaces)](https://docs.split.io/reference/get-workspaces#/) endpoint and the Harness project name."},{"in":"path","name":"object-name","schema":{"type":"string"},"required":true,"description":"The name of the feature flag."},{"in":"path","name":"object-type","schema":{"type":"string","default":"Split"},"required":true,"description":"The type of object you want to tag. The only supported value is `Split`, which is the legacy identifier for the feature flag object type. Send the literal string `Split` even though the object is referred to as a feature flag throughout Harness FME."}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"tags":{"type":"string","description":"String list. End state of tags associated with the object","format":"json"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"objects":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"objectType":{"type":"string"},"objectName":{"type":"string"}}}},"offset":{"type":"integer","default":0},"limit":{"type":"integer","default":0},"totalCount":{"type":"integer","default":0}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","default":0},"message":{"type":"string"},"details":{"type":"string"},"transactionId":{"type":"string"}}}}}}},"tags":["Tags"]}}}}
```
