Class: Braintrust::Resources::Organizations::Members
- Inherits:
-
Object
- Object
- Braintrust::Resources::Organizations::Members
- Defined in:
- lib/braintrust/resources/organizations/members.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Members
constructor
A new instance of Members.
-
#update(params = {}, opts = {}) ⇒ Braintrust::Models::PatchOrganizationMembersOutput
Modify organization membership.
Constructor Details
#initialize(client:) ⇒ Members
Returns a new instance of Members.
7 8 9 |
# File 'lib/braintrust/resources/organizations/members.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#update(params = {}, opts = {}) ⇒ Braintrust::Models::PatchOrganizationMembersOutput
Modify organization membership
28 29 30 31 32 33 34 35 |
# File 'lib/braintrust/resources/organizations/members.rb', line 28 def update(params = {}, opts = {}) req = {} req[:method] = :patch req[:path] = "/v1/organization/members" req[:body] = params req[:model] = Braintrust::Models::PatchOrganizationMembersOutput @client.request(req, opts) end |