Skip to content

Latest commit

 

History

History
396 lines (259 loc) · 8.06 KB

GroupsApi.md

File metadata and controls

396 lines (259 loc) · 8.06 KB

ConnectWise::GroupsApi

All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0

Method HTTP request Description
marketing_groups_count_get GET /marketing/groups/count
marketing_groups_get GET /marketing/groups
marketing_groups_id_delete DELETE /marketing/groups/{id}
marketing_groups_id_get GET /marketing/groups/{id}
marketing_groups_id_patch PATCH /marketing/groups/{id}
marketing_groups_id_put PUT /marketing/groups/{id}
marketing_groups_post POST /marketing/groups

marketing_groups_count_get

Count marketing_groups_count_get(opts)

Get Groups Count

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

opts = { 
  conditions: "conditions_example" # String | 
}

begin
  result = api_instance.marketing_groups_count_get(opts)
  p result
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_count_get: #{e}"
end

Parameters

Name Type Description Notes
conditions String [optional]

Return type

Count

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

marketing_groups_get

Array<Group> marketing_groups_get(opts)

Get Groups

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

opts = { 
  conditions: "conditions_example" # String | 
  order_by: "order_by_example", # String | 
  childconditions: "childconditions_example", # String | 
  customfieldconditions: "customfieldconditions_example", # String | 
  page: 56, # Integer | 
  page_size: 56 # Integer | 
}

begin
  result = api_instance.marketing_groups_get(opts)
  p result
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_get: #{e}"
end

Parameters

Name Type Description Notes
conditions String [optional]
order_by String [optional]
childconditions String [optional]
customfieldconditions String [optional]
page Integer [optional]
page_size Integer [optional]

Return type

Array<Group>

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

marketing_groups_id_delete

marketing_groups_id_delete(id)

Delete Group By Id

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

id = 56 # Integer | 


begin
  api_instance.marketing_groups_id_delete(id)
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_id_delete: #{e}"
end

Parameters

Name Type Description Notes
id Integer

Return type

nil (empty response body)

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

marketing_groups_id_get

Group marketing_groups_id_get(id)

Get Group By Id

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

id = 56 # Integer | 


begin
  result = api_instance.marketing_groups_id_get(id)
  p result
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_id_get: #{e}"
end

Parameters

Name Type Description Notes
id Integer

Return type

Group

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

marketing_groups_id_patch

Group marketing_groups_id_patch(id, operations)

Update Group

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

id = 56 # Integer | 

operations = [ConnectWise::PatchOperation.new] # Array<PatchOperation> | 


begin
  result = api_instance.marketing_groups_id_patch(id, operations)
  p result
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_id_patch: #{e}"
end

Parameters

Name Type Description Notes
id Integer
operations Array<PatchOperation>

Return type

Group

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

marketing_groups_id_put

Group marketing_groups_id_put(id, group)

Replace Group

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

id = 56 # Integer | 

group = ConnectWise::Group.new # Group | 


begin
  result = api_instance.marketing_groups_id_put(id, group)
  p result
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_id_put: #{e}"
end

Parameters

Name Type Description Notes
id Integer
group Group

Return type

Group

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

marketing_groups_post

Group marketing_groups_post(group)

Create Group

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = ConnectWise::GroupsApi.new

group = ConnectWise::Group.new # Group | 


begin
  result = api_instance.marketing_groups_post(group)
  p result
rescue ConnectWise::ApiError => e
  puts "Exception when calling GroupsApi->marketing_groups_post: #{e}"
end

Parameters

Name Type Description Notes
group Group

Return type

Group

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json