# policysets#update Update a policy set by identifier Endpoint: PATCH /pm/api/v1/policysets/{identifier} Version: 1.0 Security: ## Query parameters: - `accountIdentifier` (string) Harness account ID Example: "eBqAoNchMLKigC_qZ5EdC" - `orgIdentifier` (string) Harness organization ID Example: "test-org" - `projectIdentifier` (string) Harness project ID Example: "test-project" ## Path parameters: - `identifier` (string, required) Identifier of the policy set Example: "policyset-1" ## Header parameters: - `x-api-key` (string) Harness PAT key used to perform authorization Example: "Illo tempora qui voluptatem in." ## Request fields (application/json): - `action` (string) Action that triggers the policy set Example: "onrun" - `description` (string) Description of the policy set Example: "Captures critical production policies" - `enabled` (boolean) Only enabled policy sets are evaluated when evaluating by type/action Example: true - `entity_selector` (string) A string enum value which determines which entities the policy set applies to during evaluation. This feature is not available for all accounts, Contact support if you wish to have it enabled. Enum: "all_entities_in_scope", "all_entities_in_resource_groups" - `name` (string) Name of the policy set Example: "Production Policies" - `policies` (array) Policies linked to this policy set Example: [{"identifier":"policy-1","severity":"warning"},{"identifier":"policy-1","severity":"warning"}] - `policies.identifier` (string, required) identifier of the policy with account. or org. prefix if needed Example: "policy-1" - `policies.severity` (string, required) The severity of this policy in this context Enum: "warning", "error" - `resource_groups` (array) Resource groups that contain the resources that this policy set should be evaluated for. Resource groups are not supported for flag or custom policy sets. This feature is not available for all accounts, Contact support if you wish to have it enabled. Example: [{"account_id":"Aperiam iusto ut exercitationem delectus.","identifier":"Impedit et.","org_id":"Aut atque necessitatibus est maxime.","project_id":"Natus voluptas dolor sint."},{"account_id":"Aperiam iusto ut exercitationem delectus.","identifier":"Impedit et.","org_id":"Aut atque necessitatibus est maxime.","project_id":"Natus voluptas dolor sint."},{"account_id":"Aperiam iusto ut exercitationem delectus.","identifier":"Impedit et.","org_id":"Aut atque necessitatibus est maxime.","project_id":"Natus voluptas dolor sint."}] - `resource_groups.account_id` (string, required) resource group account id Example: "Laborum iusto veniam quidem ut qui." - `resource_groups.identifier` (string, required) resource group identifier Example: "Qui et non aut." - `resource_groups.org_id` (string, required) resource group org id Example: "Beatae aperiam." - `resource_groups.project_id` (string, required) resource group project identifier Example: "Aspernatur aperiam sit voluptatem laborum tempore maiores." - `type` (string) Type of input suitable for the policy set Example: "pipeline" ## Response 400 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 401 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 403 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 404 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 500 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 502 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true