module Uiza::APIOperation::Create

Public Instance Methods

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

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

  retrieve response.id
end