Skip to main content
PUT
PUT /v1/storedProcedures

Update a Stored Procedure

Create a stored procedure or update it if it already exists, using PUT /v1/storedProcedures with the full request body. Send the complete definition, not just the fields you want to change. To change only some fields, use PATCH with a JSON Patch array and the application/json-patch+json content type, as shown in the PATCH examples below.

Body Parameters

string
required
Name of the stored procedure. Must be unique within the parent database schema.
string
required
Fully qualified name of the parent DatabaseSchema, for example snowflake_prod.analytics.public.
object
required
The source code and language of the stored procedure.
string
Human-readable display name for the stored procedure.
string
Description of the stored procedure in Markdown format.
array
Array of owner references (users or teams) to assign to the stored procedure.
array
Fully qualified names of the domains to assign for governance purposes.
array
Array of classification tags to apply to the stored procedure.
object
Custom property values defined by your organization’s metadata schema.
PUT /v1/storedProcedures

Returns

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

Response

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

Error Handling