https://api.bitsighttech.com/ratings/v1/companies/company_guid/tags/bulk
Create, modify, or delete infrastructure tags.
See examples for:
Parameters
* Required.
add-
[Query] Create a tag.
Value: [Array]
company_guidis_publicname
-
add:company_guid -
* Required for the
addparameter.[Path] Identify the company to modify tags for.
Value: [String] Company unique identifier [
entity_guid]. See GET: Portfolio Details. -
add:is_public -
* Required for the
addparameter.[Query] Define the tag’s visibility.
Value: [Boolean]
-
true= The tag is public. -
false= The tag is private.
-
-
add:name -
* Required for the
addparameter.[Query] Assign the tag name.
Value: [String] The tag name.
delete-
[Query] Delete an existing tag.
Value: [Array]
guid -
delete:guid -
* Required for the
deleteparameter.[Query] Identify the tag to delete.
Value: Tag unique identifier [
tag_guid]. See GET: Infrastructure Tags. modify-
[Query] Modify an existing tag.
Value: [Array]
guidis_publicname
-
modify:guid -
* Required for the
modifyparameter.[Query] Identify the tag to modify.
Value: Tag unique identifier [
tag_guid]. See GET: Infrastructure Tags. -
modify:is_public -
Optional if
nameis provided.[Query] Define the tag’s visibility.
Value: [Boolean]
-
true= The tag is public. -
false= The tag is private.
-
-
modify:name -
Optional if
is_publicis provided.[Query] Assign the tag name.
Value: [String] The tag name.
Create Tag Example
Example Request
cURL:
curl -H "Content-Type: application/json" -X POST -i https://api.bitsighttech.com/ratings/v1/companies/a940bb61-33c4-42c9-9231-c8194c305db3/tags/bulk -u api_token: -d '{"add": [{"name": "Data Center 1","is_public": true}]}'
JSON:
{
"add": [
{
"name": "Data Center 1",
"is_public": true
}
]
}
Example Response
{
"not_added": [],
"added": [
{
"is_public": true,
"guid": "ae87bc30-a3ab-45f7-809f-61ec36978685",
"name": "Data Center 1"
}
]
}
Response Attributes
not_added- [Array] Tags that could not be added.
added- [Array] Tags that were successfully added.
Delete Tag Example
Example Request
cURL:
curl -H "Content-Type: application/json" -X POST -i https://api.bitsighttech.com/ratings/v1/companies/a940bb61-33c4-42c9-9231-c8194c305db3/tags/bulk -u api_token: -d '{"delete": [{"guid": "ae87bc30-a3ab-45f7-809f-61ec36978685"}]}'
JSON:
{
"delete": [
{
"guid": "ae87bc30-a3ab-45f7-809f-61ec36978685"
}
]
}
Example Response
{
"deleted":[
{
"guid":"ae87bc30-a3ab-45f7-809f-61ec36978685"
}
],
"not_deleted":[]
}
Response Attributes
deleted- [Array] Tags that were successfully deleted.
not_deleted- [Array] Tags that could not be deleted.
Modify Tag Example
Example Request
cURL:
curl -H "Content-Type: application/json" -X POST -i https://api.bitsighttech.com/ratings/v1/companies/a940bb61-33c4-42c9-9231-c8194c305db3/tags/bulk -u api_token: -d '{"modify": [{"guid": "ae87bc30-a3ab-45f7-809f-61ec36978685","name": "Data Center 1","is_public": false}]}'
JSON:
{
"modify": [
{
"guid": "ae87bc30-a3ab-45f7-809f-61ec36978685"
"name": "Data Center 1",
"is_public": true
}
]
}
Example Response
{
"modified":[
{
"is_public":false,
"guid":"ae87bc30-a3ab-45f7-809f-61ec36978685",
"name":"Data Center 1"
}
],
"not_modified":[]
}
Response Attributes
modified- [Array] Tags that were successfully modified.
not_modified- [Array] Tags that could not be modified.
-
July 10, 2025:
modify&deleteparameters and examples. - May 2, 2025: Published.
Feedback
0 comments
Please sign in to leave a comment.