Anysource to JSM Assets

Anysource to JSM Assets

System

Instructions

System

Instructions

HTTP Config

When using a connection created using Anysource feature, you can set these config parameters in the Asset import job.

  1. config:http_bodya single line JSON input that can be used as http body for Post method. Use a service like this one to format/convert your json to a single line.

  2. config:http_methodset to GET or POST, default is GET

Two-Call Import (List + Detail)

Some APIs return only IDs from their list endpoint and need a second call to get each full record — e.g. Dayforce GET /V1/Employees → [{XRefCode}], or CrowdStrike Falcon …/devices-scroll → ["id", …]. Set config:detail_api on the import to enable this; existing single-call imports are unaffected.

Flow: the connection's endpoint returns the ID list → each ID (or a batch of IDs) is hydrated through the detail endpoint → the full records are imported.

Attribute

Purpose

Example

config:connection_name

The Anysource connection (required).

Dayforce – Employees

config:detail_api

Detail URL template with {id}. Setting this enables two-call mode. Confined to the connection's host.

V1/Employees/{id}?expand=WorkAssignments

config:id_path

Where the ID is in each list row. Leave blank if the list row itself is the ID

XRefCode

config:detail_data_path

Where the record sits in the detail response (blank = root).

Data

config:detail_api_method

get (default) or post.

post

config:detail_api_body

JSON body for POST. Put {id} unquoted.

{"employeeId": {id}}

config:batch_size

IDs per part (default 150). Lower for wide records.

100

Request modes (decided by where {id} sits):

  • Per-ID — one request per list row. {id} in the URL (GET/POST), or in a non-array body position: {"employeeId": {id}}.

  • Per-part — one request for a whole batch of IDs. {id} sits inside a JSON array in the body: {"ids": [{id}]}. (Here {id} must not also be in the URL.)

Examples

# Dayforce — per-ID GET config:connection_name=Dayforce – Employees config:id_path=XRefCode config:detail_api=V1/Employees/{id}?expand=WorkAssignments,EmploymentStatuses config:detail_data_path=Data # CrowdStrike Falcon — scalar id list, per-part POST config:connection_name=Falcon – Devices config:id_path= # blank: each list row IS the id config:detail_api=https://<base>/devices/entities/devices/v2 config:detail_api_method=post config:detail_api_body={"ids": [{id}]} config:detail_data_path=resources #Jamf Applications config:detail_api=https://{region}.api.jamfcloud.com/devices/v1/devices/{id}/applications config:detail_api=https://yourServer.jamfcloud.com/api/v2/mobile-devices/{id}/detail config:id_path=id config:detail_api_method=get config:detail_data_path=results #Iru Device Details Applications config:detail_api=https://{sub_domain}.api.kandji.io/api/v1/devices/{id}/details config:id_path=device_id

Also honors the existing config:http_header:* overrides. Detail calls reuse the connection's auth and are locked to its host.