Module: Grist::Endpoint::Organization

Included in:
Grist::Endpoint
Defined in:
lib/grist/endpoint/organization.rb

Instance Method Summary collapse

Instance Method Details

#list_users_with_access(id) ⇒ Object



19
20
21
# File 'lib/grist/endpoint/organization.rb', line 19

def list_users_with_access(id)
  get("/orgs/#{id}/access")
end

#manage_access(id, **params) ⇒ Object



23
24
25
# File 'lib/grist/endpoint/organization.rb', line 23

def manage_access(id, **params)
  patch("/orgs/#{id}/access", params)
end

#organization(id) ⇒ Object



10
11
12
# File 'lib/grist/endpoint/organization.rb', line 10

def organization(id)
  get("/orgs/#{id}")
end

#organizationsObject



6
7
8
# File 'lib/grist/endpoint/organization.rb', line 6

def organizations
  get("/orgs")
end

#update(id, payload, **params) ⇒ Object Also known as: update_organization



14
15
16
# File 'lib/grist/endpoint/organization.rb', line 14

def update(id, payload, **params)
  patch("/orgs/#{id}", payload, params)
end