Forum Discussion
bellinghamlady
Jan 14, 2021Copper Contributor
Powershell API Calls to Create Tags Failing with no Error Message
I created a PowerShell script that calls the Security Center Defender for Endpoint api to create a machine tag. I am experiencing some irregular behavior. I will make the call, and it will return a...
Thijs Lecomte
Jan 15, 2021Bronze Contributor
I tag a lot of machines with the API and haven't had any real issues.
It might be possible that there is some delay between when you add it through the API and when it's visible?
Have you tried to check through the API is you see the tag there?
It might be possible that there is some delay between when you add it through the API and when it's visible?
Have you tried to check through the API is you see the tag there?
- bellinghamladyJan 17, 2021Copper Contributor
I do not see the tags even after waiting a day. They are really not there. The problem occurs both when adding and removing tags. I get a 200 response, indicating everything was OK, but then the tag was not added or removed as expected. I guess I could do another call to see if the tag is there, but it wastes a lot of API calls.
- Thijs LecomteJan 21, 2021Bronze ContributorIt should work. I would advise you to open a support case to check what's going on
- bellinghamladyJan 21, 2021Copper Contributor
Thijs Lecomte I will be opening a support case, thank you.