CrowdStrike / gofalcon

Golang-based SDK to CrowdStrike's APIs
MIT License
60 stars 43 forks source link

fix ioa exclusions creation returns 201 in case of success #423

Closed basbeu closed 7 months ago

basbeu commented 7 months ago

I noted that the endpoint POST /policy/entities/ioa-exclusions/v1 returned code 201 in case of success. The gofalcon SDK expects a code 200. As a consequence, the CreateIOAExclusionsV1 method returns an error even in case of a success.

ffalor commented 7 months ago

@basbeu good catch, this code is autogenerated. I'll create a patch for the api spec and this will be resolved in the next release.

Keeping this open until then. Thank you for reporting this issue!

ffalor commented 7 months ago

hey @basbeu 0.7.0-rc1 should fix this. I some other things to do before I can release 0.7.0

basbeu commented 6 months ago

Thank you very much @ffalor, I tested 0.7.0-rc1 and it fix the problem.