Skip to main content
PATCH
PATCH /v1/storedProcedures/{id}

Update a Stored Procedure

Update a stored procedure’s properties using JSON Merge Patch. You can update by ID or by fully qualified name.

Update by ID

id
string
required
UUID of the stored procedure to update.

Update by Name

Use PATCH /v1/storedProcedures/name/{fqn} to update by fully qualified name.
fqn
string
required
Fully qualified name of the stored procedure (e.g., snowflake_prod.analytics.public.usp_refresh_analytics).

Body Parameters

Send a JSON object with the fields to update. Only provided fields are changed.
description
string
Updated description in Markdown format.
displayName
string
Updated display name.
storedProcedureCode
object
Updated source code and language.
owners
array
Updated list of owner references.
tags
array
Updated classification tags.
domain
string
Updated domain FQN.
extension
object
Updated custom property values.
PATCH /v1/storedProcedures/{id}

Returns

Returns the updated stored procedure object with the new version number.

Response

id
string
Unique identifier for the stored procedure (UUID format).
name
string
Stored procedure name.
fullyQualifiedName
string
Fully qualified name in format service.database.schema.storedProcedure.
description
string
Updated description.
version
number
Incremented version number.

Error Handling