# updatePolicyStatus **Type:** GraphQL mutations **Description:** Update policy status ## Arguments - id (ID) - status (PolicyStatus, Not Null): undefined ## Response **Type:** Policy **Description:** Represents a policy that evaluates agent events and creates issues ### Fields - id (ID): Unique identifier for the policy - name (String): Policy name - description (String): Detailed description of what the policy does - mode (PolicyMode): Current enforcement mode of the policy - status (PolicyStatus): Current status of the policy - trigger (PolicyTrigger): Event that triggers policy evaluation - conditions (PolicyConditionGroup): Conditions that must be met for the policy to match - actions (PolicyAction): Actions to execute when policy conditions match - autoResolve (Boolean): Automatically resolve issues when conditions are no longer met - isDefault (Boolean): Indicates if this policy is a system default or custom/modified by the tenant - issuesCount (Int): Number of issues created by this policy - lastExecutedAt (DateTime): When the policy was last executed - createdAt (DateTime): When the policy was created - updatedAt (DateTime): When the policy was last updated - createdBy (Owner): User who created the policy - updatedBy (Owner): User who last updated the policy - version (Int): Version number, incremented on each update - deletedAt (DateTime): When the policy was soft-deleted (null if active) - environmentTypes (EnvironmentType): Effective environment types where this policy applies. Returns specific environments if conditions include environment filters, or all environments (Prod, Sandbox, Dev) if no environment filter is specified.