Skip to main content
PATCH
Update an action

Authorizations

Authorization
string
header
required

Organization API key (sl_…).

Headers

If-Match
string | null
x-tenant-id
string
required

The organization ID the request is scoped to.

Path Parameters

action_id
string
required

Body

application/json

Update a cost-saving action.

An omitted field is left unchanged; an explicit null clears a field that is nullable. Re-point the action at a different resource with at most one of srn or insight_id. Close an action by setting end_date. Savings status, calculation metadata and materialization progress are server-managed and are not patchable.

title
string | null
Maximum string length: 200
comment
string | null
user_email
string | null
actioned_time
string<date-time> | null
end_date
string<date> | null
savings_amount
number | null
savings_rate_percent
number | null
savings_type
enum<string> | null
Available options:
calculated,
manual
savings_override_percent
number | null
Required range: 0 <= x <= 100
select_feature
enum<string> | null
Available options:
smart_suspend,
apc_automated_savings,
dbx_warehouse_automated_savings,
jcss_automated_savings
resource_metadata
ResourceMetadata · object | null
team_id
string<uuid> | null
insight_id
string<uuid> | null
srn
string | null

The canonical SELECT Resource Name (SRN) of the resource this action applies to. Resolve one from a resource's identifying details with POST /v2/srn/actions/resolve. An empty string scopes the action to the whole organization. Insight SRNs are rejected — name an insight with insight_id instead. Patching srn detaches the action from any insight.

Maximum string length: 2048

Response

Successful Response

A cost-saving action taken on a Snowflake resource, with its measured savings.

id
string
required
title
string
required
srn
string
required
user_email
string
required
actioned_time
string
required
created_by
string
required
srn_resource_type
string
required
create_time
string
required
update_time
string
required
etag
string
required
read-only

Opaque strong ETag.

comment
string | null
end_date
string<date> | null
insight_id
string | null
insight_type
string | null
savings_type
enum<string> | null
Available options:
calculated,
manual
savings_amount
number | null
savings_rate_percent
number | null
savings_override_percent
number | null
current_daily_savings
number | null
current_annualized_savings
number | null
current_realized_savings
number | null
savings_status
enum<string> | null
Available options:
pending,
calculated,
error,
unsupported
savings_calculation_metadata
SavingsCalculationMetadata · object | null
savings_materialized_through
string<date> | null
select_feature
enum<string> | null
Available options:
smart_suspend,
apc_automated_savings,
dbx_warehouse_automated_savings,
jcss_automated_savings
resource_metadata
ResourceMetadata · object | null
team_id
string | null
updated_by
string | null