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

16 lines
384 B
Markdown
Raw Normal View History

2024-07-03 15:25:40 +00:00
require 'appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
2024-08-21 10:53:05 +00:00
.set_project('<YOUR_PROJECT_ID>') # Your project ID
.set_key('<YOUR_API_KEY>') # Your secret API key
2024-07-03 15:25:40 +00:00
functions = Functions.new(client)
result = functions.update_deployment(
function_id: '<FUNCTION_ID>',
deployment_id: '<DEPLOYMENT_ID>'
)