Method: KineticSdk::Agent#update_handler

Defined in:
lib/kinetic_sdk/agent/lib/handler.rb

#update_handler(space, slug, body = {}, headers = default_headers) ⇒ KineticSdk::Utils::KineticHttpResponse

Update a handler

Parameters:

  • space (String)

    slug of the space

  • slug (String)

    slug of the handler

  • body (Hash) (defaults to: {})

    properties of the handler to update

  • headers (Hash) (defaults to: default_headers)

    hash of headers to send, default is basic authentication and accept JSON content type

Returns:



49
50
51
52
# File 'lib/kinetic_sdk/agent/lib/handler.rb', line 49

def update_handler(space, slug, body={}, headers=default_headers)
  @logger.info("Updating the \"#{slug}\" handler in the \"#{space}\" space.")
  put("#{@api_url}/spaces/#{space}/handlers/#{slug}", body, headers)
end