module Uiza::APIOperation::Update

Public Instance Methods

update(params) click to toggle source
# File lib/uiza/api_operation/update.rb, line 4
def update params
  url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{self::OBJECT_API_PATH}"
  method = :put
  headers = {"Authorization" => Uiza.authorization}

  uiza_client = UizaClient.new url, method, headers, params, self::OBJECT_API_DESCRIPTION_LINK[:update]
  response = uiza_client.execute_request

  retrieve response.id
end