Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Latest commit

 

History

History
72 lines (51 loc) · 2.69 KB

KnowledgeApi.md

File metadata and controls

72 lines (51 loc) · 2.69 KB

JCAPIv2::KnowledgeApi

All URIs are relative to https://console.jumpcloud.com/api/v2

Method HTTP request Description
knowledge_salesforce_list GET /knowledge/salesforce List Knowledge Articles

knowledge_salesforce_list

SalesforceKnowledgeListOutput knowledge_salesforce_list(opts)

List Knowledge Articles

This endpoint returns a list of knowledge articles hosted in salesforce. Sample Request curl -X GET https://console.jumpcloud.com/api/v2/knowledge/salesforce \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}'

Example

# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
  # Configure API key authorization: x-api-key
  config.api_key['x-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['x-api-key'] = 'Bearer'
end

api_instance = JCAPIv2::KnowledgeApi.new

opts = { 
  fields: ["fields_example"], # Array<String> | 
  filter: ["filter_example"], # Array<String> | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in
  limit: 10, # Integer | The number of records to return at once. Limited to 100.
  skip: 0, # Integer | The offset into the records to return.
  sort: ["sort_example"], # Array<String> | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. 
}

begin
  #List Knowledge Articles
  result = api_instance.knowledge_salesforce_list(opts)
  p result
rescue JCAPIv2::ApiError => e
  puts "Exception when calling KnowledgeApi->knowledge_salesforce_list: #{e}"
end

Parameters

Name Type Description Notes
fields Array<String> [optional]
filter Array<String> Supported operators are: eq, ne, gt, ge, lt, le, between, search, in [optional]
limit Integer The number of records to return at once. Limited to 100. [optional] [default to 10]
skip Integer The offset into the records to return. [optional] [default to 0]
sort Array<String> The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. [optional]

Return type

SalesforceKnowledgeListOutput

Authorization

x-api-key

HTTP request headers

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