Solved

Whats the maximum string length for `EndpointsList` in the deactivate api?

  • 28 August 2019
  • 4 replies
  • 127 views

Badge +2
Hi,

Does anyone knows the maximum size of string in this request for EndpointsList param?

https://unityapi.webrootcloudav.com/Docs/en/APIDoc/Api/POST-api-console-gsm-gsmKey-sites-siteId-endpoints-deactivate

Thanks 🙂
icon

Best answer by cbullas 29 August 2019, 11:41

Agreed, you do need to be careful here, but it does have usecases for our large integrations like RMMs. Note you can also de-activate full site with one command, but you need to have the right permissions. We don't have any plans to change this at present but it's something we may look into changing in future; maybe adding logic to check for unknown property names and have the call to fail in such a situation.

As for the maximum string size, this is body data and we don't set limit in the Unity API and we haven't run into issues before with our larger partners. I hope that answers your question and thank you for raising.
View original

4 replies

Userlevel 2
Badge +7
Hi, I'll need to check with the developers on that one but in the meantime don't test it leaving the field blank as it's like a wildcard to deactivate all attached end points!
Badge +2
Hi, I'll need to check with the developers on that one but in the meantime don't test it leaving the field blank as it's like a wildcard to deactivate all attached end points!

yea thats shockingly unbeliveable someone would leave a "delete all" type of api open for use. Even if you misspelled `EndpointsList` it would deactivate all! I know the developer would have an amaaaaaaaaaazing reason for that type of no-check whatsoever.. but its really really a recipie for disaster!
Userlevel 2
Badge +7
Agreed, you do need to be careful here, but it does have usecases for our large integrations like RMMs. Note you can also de-activate full site with one command, but you need to have the right permissions. We don't have any plans to change this at present but it's something we may look into changing in future; maybe adding logic to check for unknown property names and have the call to fail in such a situation.

As for the maximum string size, this is body data and we don't set limit in the Unity API and we haven't run into issues before with our larger partners. I hope that answers your question and thank you for raising.
Badge +2
Ok, thanks for the replies. Cheers 🙂

Reply