Searches for tags matching criteria, or retrieves a single tag by id.
| Name | Type | Description |
|---|---|---|
| id | int | Tag id. When provided, returns a single record. |
| section | string | Section of the tagged object (e.g. trackeritem). Optional filter. |
| refId | int | Id of the tagged object. Optional filter. |
| tagName | string | Tag value to filter by. Optional. |
| sort_field | string | Field to sort by. Options: section, refId, tagName. Default section. |
| sort_dir | string | Sort direction: asc or desc. Default desc. |
| page_num | int | Page number (zero-based). Default 0. |
| page_size | int | Records per page. Default 20. |
sort_field and sort_dir parameters to control the order in which
records are returned.page_size and page_num parameters to control the set of records
returned.Single record or zero or more TagBasic records.
| Name | Type | Description |
|---|---|---|
| id | int | Id of associated object |
| section | string | Type of the associated object |
| refId | int | Id of object associated with this activity log |
| tagName | string | Name of the tag |
GET http://gforge.api/tag?section=trackeritem
GET http://gforge.api/tag/trackeritem/1001
Replaces all tags on an object with the provided set.
| Name | Type | Description |
|---|---|---|
| section | string | Section of the tagged object (e.g. trackeritem). Required. |
| refId | int | Id of the tagged object. Required. |
| tags | string | Comma-delimited list of tag values to set. Replaces all existing tags. |
Associative array with key location containing the URL of the tag list.
PUT http://gforge.api/tag/trackeritem/1
{ "tags": "tag1,tag2,tag3" }