Method: Insightly2::DSL::Organisations#delete_organisation_image

Defined in:
lib/insightly2/dsl/organisations.rb

#delete_organisation_image(id: nil) ⇒ Faraday::Response

DELETE /v2.1/Organisations/c_id/Image Delete an organisation image.

Parameters:

  • id (String, Fixnum) (defaults to: nil)

    An organisation’s ID.

Returns:

  • (Faraday::Response)

    .

Raises:

  • (ArgumentError)

    If the method arguments are blank.



123
124
125
126
# File 'lib/insightly2/dsl/organisations.rb', line 123

def delete_organisation_image(id: nil)
  raise ArgumentError, "ID cannot be blank" if id.blank?
  request(:delete, "Organisations/#{id}/Image")
end