1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. AuthPolicyUpdateRequest

AuthPolicyUpdateRequest

    Request body for auth policy update.

    Properties

    • policies array[AuthPolicyDefinition] required
      List of policies
    • decision string required
      The access decision for matching tokens (e.g. ‘allow’, ‘deny’).
    • tokenType string required
      The type of token this rule applies to (e.g. ‘personal’, ‘org’, ’team’).
    • teamName string optional
      Team name filter. When set, this rule only applies to tokens belonging to this team.
    • userLogin string optional
      User login filter. When set, this rule only applies to tokens belonging to this user.
    • runnerID string optional
      Runner ID filter. When set, this rule only applies to tokens for this deployment runner.
    • roleID string optional
      Role ID filter. When set, this rule only applies to tokens with this role.
    • authorizedPermissions array[string] required
      The set of permissions granted when this rule matches.
    • rules map[string]object required
      Additional rule conditions as key-value pairs.