All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
marketing_groups_id_companies_company_id_delete | DELETE /marketing/groups/{id}/companies/{companyId} | |
marketing_groups_id_companies_company_id_get | GET /marketing/groups/{id}/companies/{companyId} | |
marketing_groups_id_companies_company_id_patch | PATCH /marketing/groups/{id}/companies/{companyId} | |
marketing_groups_id_companies_company_id_put | PUT /marketing/groups/{id}/companies/{companyId} | |
marketing_groups_id_companies_count_get | GET /marketing/groups/{id}/companies/count | |
marketing_groups_id_companies_get | GET /marketing/groups/{id}/companies | |
marketing_groups_id_companies_post | POST /marketing/groups/{id}/companies |
marketing_groups_id_companies_company_id_delete(id, company_id)
Delete Marketing Company By Id
# 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::GroupCompaniesApi.new
id = 56 # Integer |
company_id = 56 # Integer |
begin
api_instance.marketing_groups_id_companies_company_id_delete(id, company_id)
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_company_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
company_id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
MarketingCompany marketing_groups_id_companies_company_id_get(id, company_id)
Get Marketing Company By Id
# 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::GroupCompaniesApi.new
id = 56 # Integer |
company_id = 56 # Integer |
begin
result = api_instance.marketing_groups_id_companies_company_id_get(id, company_id)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_company_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
company_id | Integer |
- Content-Type: Not defined
- Accept: application/json
MarketingCompany marketing_groups_id_companies_company_id_patch(id, company_id, operations)
Update Marketing Company
# 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::GroupCompaniesApi.new
id = 56 # Integer |
company_id = 56 # Integer |
operations = [Connectwise::PatchOperation.new] # Array<PatchOperation> |
begin
result = api_instance.marketing_groups_id_companies_company_id_patch(id, company_id, operations)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_company_id_patch: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
company_id | Integer | ||
operations | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json
MarketingCompany marketing_groups_id_companies_company_id_put(id, company_id, marketing_company)
Replace Marketing Company
# 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::GroupCompaniesApi.new
id = 56 # Integer |
company_id = 56 # Integer |
marketing_company = Connectwise::MarketingCompany.new # MarketingCompany |
begin
result = api_instance.marketing_groups_id_companies_company_id_put(id, company_id, marketing_company)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_company_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
company_id | Integer | ||
marketing_company | MarketingCompany |
- Content-Type: application/json
- Accept: application/json
Count marketing_groups_id_companies_count_get(id, opts)
Get Marketing Companys Count
# 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::GroupCompaniesApi.new
id = 56 # Integer |
opts = {
conditions: "conditions_example" # String |
}
begin
result = api_instance.marketing_groups_id_companies_count_get(id, opts)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_count_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
conditions | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<MarketingCompany> marketing_groups_id_companies_get(id, opts)
Get Marketing Companys
# 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::GroupCompaniesApi.new
id = 56 # Integer |
opts = {
conditions: "conditions_example" # String |
order_by: "order_by_example", # String |
page: 56, # Integer |
page_size: 56 # Integer |
}
begin
result = api_instance.marketing_groups_id_companies_get(id, opts)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
conditions | String | [optional] | |
order_by | String | [optional] | |
page | Integer | [optional] | |
page_size | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
MarketingCompany marketing_groups_id_companies_post(id, marketing_company)
Create Marketing Company
# 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::GroupCompaniesApi.new
id = 56 # Integer |
marketing_company = Connectwise::MarketingCompany.new # MarketingCompany |
begin
result = api_instance.marketing_groups_id_companies_post(id, marketing_company)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling GroupCompaniesApi->marketing_groups_id_companies_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
marketing_company | MarketingCompany |
- Content-Type: application/json
- Accept: application/json