cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
428
Views
5
Helpful
1
Replies

StealthWatch 7.1 REST API: Using PUT to update tag/host group parameter (generating code 5135, "not found"?)

Experimenting with endpoint that updates tag/host group info @ '/smc-configuration/rest/v1/tenants/<tag#>/tags/<tagId>', but can't seem to get this working. It generally produces a 404, with "code 5135, message, 'not found'".

 

Can update host group definition via '/smc-configuration/rest/v1/tenants/<tag#>/tags', but that requires re-post of the entire definition. 

 

Intent is to modify single item, like 'ranges' or 'name', but post of '{ "name" : "new name" }'' for example, generates error 

1 REPLY 1
ChrisFournier242
Beginner

 

Figured it out: PUT data must include reference to the tag ID *and* the domain ID, even though these are in the URI.

 

Not highlighted in documentation that both are required (at least in 7.1.2)

 

Incidentally, changing subnets via 'ranges' is a substitution, and not additive (need to include previous IPs/subnets in PUT)