All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
schedule_colors_count_get | GET /schedule/colors/count | |
schedule_colors_get | GET /schedule/colors | |
schedule_colors_id_clear_post | POST /schedule/colors/{id}/clear | |
schedule_colors_id_get | GET /schedule/colors/{id} | |
schedule_colors_id_patch | PATCH /schedule/colors/{id} | |
schedule_colors_id_put | PUT /schedule/colors/{id} | |
schedule_colors_reset_post | POST /schedule/colors/reset |
Count schedule_colors_count_get(opts)
Get Schedule Colors 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::ScheduleColorsApi.new
opts = {
conditions: "conditions_example" # String |
}
begin
result = api_instance.schedule_colors_count_get(opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_count_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
conditions | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<ScheduleColor> schedule_colors_get(opts)
Get Schedule Colors
# 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::ScheduleColorsApi.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.schedule_colors_get(opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
conditions | String | [optional] | |
order_by | String | [optional] | |
childconditions | String | [optional] | |
customfieldconditions | String | [optional] | |
page | Integer | [optional] | |
page_size | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
ScheduleColor schedule_colors_id_clear_post(id)
Clear Schedule Color
# 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::ScheduleColorsApi.new
id = 56 # Integer |
begin
result = api_instance.schedule_colors_id_clear_post(id)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_id_clear_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: Not defined
- Accept: application/json
ScheduleColor schedule_colors_id_get(id)
Get Schedule Color 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::ScheduleColorsApi.new
id = 56 # Integer |
begin
result = api_instance.schedule_colors_id_get(id)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: Not defined
- Accept: application/json
ScheduleColor schedule_colors_id_patch(id, operations)
Update Schedule Color
# 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::ScheduleColorsApi.new
id = 56 # Integer |
operations = [ConnectWise::PatchOperation.new] # Array<PatchOperation> |
begin
result = api_instance.schedule_colors_id_patch(id, operations)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_id_patch: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
operations | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json
ScheduleColor schedule_colors_id_put(id, schedule_color)
Replace Schedule Color
# 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::ScheduleColorsApi.new
id = 56 # Integer |
schedule_color = ConnectWise::ScheduleColor.new # ScheduleColor |
begin
result = api_instance.schedule_colors_id_put(id, schedule_color)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
schedule_color | ScheduleColor |
- Content-Type: application/json
- Accept: application/json
Array<ScheduleColor> schedule_colors_reset_post
Reset Schedule Colors
# 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::ScheduleColorsApi.new
begin
result = api_instance.schedule_colors_reset_post
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling ScheduleColorsApi->schedule_colors_reset_post: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json