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

Add support for nested entitlements relationship during policy creation #932

Open
ezekg opened this issue Jan 30, 2025 · 1 comment
Open

Comments

@ezekg
Copy link
Member

ezekg commented Jan 30, 2025

Similar to what we already do for releases, let's allow policies to be created with entitlements already attached.

POST /v1/policies
{
  "data": {
    "type": "policy",
    "attributes": {
      "name": "Feature Policy"
    },
    "relationships": {
      "entitlements": {
        "data": [
          { "type": "entitlement", "id": "fc39bf6f-5232-40d3-8980-7f9c109e9e98" },
          { "type": "entitlement", "id": "82a9c852-b864-4c8a-9e51-9bfe53906f5f" },
          { "type": "entitlement", "attributes": { "code": "NEW_FEATURE" } }
        ]
      }
    }
  }
}

Save a request or two.

@ezekg
Copy link
Member Author

ezekg commented Jan 30, 2025

May also be nice to add support for the same during license creation, but that may be more complex i.r.t. authz.

@ezekg ezekg changed the title Add support for nested entitlement relationships during policy creation Add support for nested entitlements relationship during policy creation Jan 30, 2025
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