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

generated API examples in UI do not appear to work #472

Open
mguthrie88 opened this issue Aug 26, 2024 · 0 comments
Open

generated API examples in UI do not appear to work #472

mguthrie88 opened this issue Aug 26, 2024 · 0 comments

Comments

@mguthrie88
Copy link
Member

Copied this example request from the UI, which looks like this:

{
  "name": "test-identity-1",
  "type": "Device",
  "appData": {},
  "isAdmin": "",
  "roleAttributes": [
    "clients"
  ],
  "authPolicyId": "default",
  "externalId": "",
  "defaultHostingCost": "0",
  "defaultHostingPrecedence": "default",
  "tags": {"customerId": "1234"},
  "enrollment": {
    "ott": true
  }
}

There appear to be two issues, the isAdmin column needs a boolean, not a string. It will fail if you pass it a quoted "false" string. The defaultHostingCost field also requires an integer, so if the "0" is quoted, the request also fails. Working request:

{
  "name": "test-identity-1",
  "type": "Device",
  "appData": {},
  "isAdmin": false,
  "roleAttributes": [
    "clients"
  ],
  "authPolicyId": "default",
  "externalId": "",
  "defaultHostingCost": 0,
  "defaultHostingPrecedence": "default",
  "tags": {"customerId": "1234"},
  "enrollment": {
    "ott": true
  }
}
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
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

No branches or pull requests

1 participant