Adding tags for software components
Available from 9.2.14. You use the POST operation on the api/sam/v2/tags/software_components element to add tags for software components.
Resource URL
https://server_url:server_port/api/sam/v2/tags/software_components
Resource information
| Operation details | Description |
|---|---|
| HTTP method | POST |
| Request headers |
|
| Request format | application/x-www-form-urlencoded |
| Request payload | ids=id_1, id_2, id_3&tags=tag_1, tag_2, tag_3 |
| Response headers |
|
| Response format | application/json |
| Response codes |
|
Example conversation - adding tags for the selected software components
Note: The length of a single tag is limited to 254 characters.
- Request
-
POST https://server_url:server_port/api/sam/v2/tags/software_components?ids=1,2,3&tags=tag1,tag2 - Request header
-
Accept: application/json Accept-Language: en-US Token: <token> - Response
-
{ "updated_components": 3 }