Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category creation script fails - needs string instead of int #34

Open
mikedowler opened this issue Jun 20, 2024 · 0 comments · May be fixed by #35
Open

Category creation script fails - needs string instead of int #34

mikedowler opened this issue Jun 20, 2024 · 0 comments · May be fixed by #35

Comments

@mikedowler
Copy link

The script is failing for me on first run with the following error:

06/20/2024 05:46:56 PM [Zscaler API] URL Category creation error: 400 Client Error:  for url: https://zsapi.zscaler.net/api/v1/urlCategories

Reviewing the documentation at https://help.zscaler.com/zia/url-categories#/urlCategories-post, it seems that the id should be of type string, whereas the code currently has the value 0. The corresponding string is "ANY".
Editing the payload JSON to use the string value allows the script to run to completion.

@mikedowler mikedowler linked a pull request Jun 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant