Module: ZendeskAPI::CreateOrUpdateMany
- Included in:
- User
- Defined in:
- lib/zendesk_api/actions.rb
Instance Method Summary collapse
-
#create_or_update_many!(client, attributes) ⇒ JobStatus
Creates or updates multiple resources using the create_or_update_many endpoint.
Instance Method Details
#create_or_update_many!(client, attributes) ⇒ JobStatus
Creates or updates multiple resources using the create_or_update_many endpoint.
206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/zendesk_api/actions.rb', line 206 def create_or_update_many!(client, attributes) association = Association.new(:class => self) response = client.connection.post("#{association.generate_path}/create_or_update_many") do |req| req.body = { resource_name => attributes } yield req if block_given? end JobStatus.new_from_response(client, response) end |