appwrite/docs/examples/1.7.x/server-ruby/examples/functions/update-function-deployment.md

16 lines
402 B
Markdown
Raw Normal View History

2025-05-17 14:28:12 +00:00
require 'appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
.set_project('<YOUR_PROJECT_ID>') # Your project ID
.set_key('<YOUR_API_KEY>') # Your secret API key
functions = Functions.new(client)
result = functions.update_function_deployment(
function_id: '<FUNCTION_ID>',
deployment_id: '<DEPLOYMENT_ID>'
)