Identifier: PER-12695 Title: Fix load options in c...
# permit-saas
p
Identifier: PER-12695 Title: Fix load options in create condition set State: Acceptance (Share) Status: started
a
I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
Based on the available documentation, I can see information about creating condition sets in Permit.io. The API supports creating condition sets (which can be either user sets or resource sets) (1) . For creating a condition set, the structure includes: • A
key
identifier • A
name
for display • A
type
(either
userset
or
resourceset
) •
conditions
with logical operators like
allOf
Example user set structure :
Copy code
{
  "key": "us_based_employees",
  "name": "US based employees",
  "type": "userset",
  "conditions": {
    "allOf": [
      {
        "user.role": {
          "equals": "employee"
        }
      },
      {
        "user.location": {
          "in": [
            "US"
          ]
        }
      }
    ]
  }
}
The Ruby SDK shows the
create_condition_set
method requires
proj_id
,
env_id
, and a
ConditionSetCreate
object (2) , (3) :
Copy code
api_instance.create_condition_set(proj_id, env_id, condition_set_create)
(2) The Node.js SDK also has similar functionality for creating condition sets (4) . However, I don't have specific information about "load options" issues in the create condition set functionality based on the available documentation. If you're experiencing issues with loading options when creating condition sets, could you provide more details about: • What specific load options are not working as expected? • Which SDK or API endpoint you're using? • Any error messages you're encountering?
Hmm.. Seems there was an issue processing this question. Please try again or tag a team member.