1
0
Fork 0
mirror of synced 2024-08-24 06:31:18 +12:00
appwrite/app/sdks/server-ruby/docs/examples/database/update-collection.md

15 lines
424 B
Markdown
Raw Normal View History

2020-05-30 06:59:53 +12:00
require 'appwrite'
client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
2020-05-30 23:52:36 +12:00
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
2020-05-30 06:59:53 +12:00
;
database = Appwrite::Database.new(client);
response = database.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', read: [], write: []);
puts response