Skip to main content
POST
POST /v1/storedProcedures

Create a Stored Procedure

Create a new stored procedure within a database schema.

Body Parameters

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

Returns

Returns the created stored procedure object with all specified properties and system-generated fields.

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.
displayName
string
Human-readable display name.
description
string
Description of the stored procedure in Markdown format.
databaseSchema
object
Reference to the parent database schema.
storedProcedureCode
object
The source code and language of the stored procedure.
serviceType
string
Type of database service (e.g., Snowflake, BigQuery, PostgreSQL).
owners
array
List of owners assigned to the stored procedure.
domains
array
Domain assignments for governance.
tags
array
Classification tags applied to the stored procedure.
extension
object
Custom property values defined by your organization’s metadata schema.
version
number
Version number for the entity (starts at 0.1).

Create or Update (PUT)

Use PUT /v1/storedProcedures instead of POST to perform an upsert. If a stored procedure with the same fullyQualifiedName already exists, it will be updated; otherwise, a new stored procedure is created. The request body is the same as POST.
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.

Bulk Create or Update (PUT)

Use PUT /v1/storedProcedures/bulk to create or update multiple stored procedures in a single request. The request body is an array of create request objects.

Error Handling