Kace Sma 11.1 API Reference En-Us
Kace Sma 11.1 API Reference En-Us
Kace Sma 11.1 API Reference En-Us
Authorization
During authentication, the assigned role is retrieved for the given KACE SMA user. This role determines the
actions that the user is authorized to perform. With regard to this API, the following default roles have specific
capabilities.
• Administrator: All API actions are available. In queries, matching data for all users is returned.
• Read-only administrator: All API queries are available. Matching data for all users is returned.
• Standard user: All API queries are available. Matching data is returned only for the current user.
If the appliance is updated with custom roles and the current user is assigned one of those roles, its permissions
are retrieved. These permission values are used to determine the user’s querying capability for this API. For more
information about the KACE SMA roles, see the K1000 Systems Management Appliance Administrator Guide.
Access
The API is available at the K1000 address starting with the path /api.
So for example, if the K1000 name in your environment is K1000Test, the route to the machine entities would be
http://K1000Test/api/inventory/machines.
Headers
On any request to this API, there is a set of mandatory HTTP headers that must be included.
Accept
This standard header determines the format of the response payload. XML and JSON are supported.
Example syntax. Accept: application/json
CSRF
During user authentication, a token is returned in a response header named x-dell-csrf-token. That value
must be gathered by the client and sent in a similarly named request header for every subsequent request.
This value is compared against a token stored in a client’s cookie. This is a common technique that helps prevent
cross-site request forgery (CSRF) attacks.
Version
As the development of this API continues, some routes may support multiple implementations. In that case
this header determines which version of the route will execute. The requested version must be at least 1. If the
requested version does not exist for the given route, the server executes the most recent version.
Example syntax. x-dell-api-version: 1
Query syntax
A rich set of operations can be performed on any data request. These are controlled by query parameters in the
URL. None, any, or all of these operations can be included in a request.
TIP: In this chapter, base entity refers to the entity specified in the URL route. For example, in the
request /api/inventory/machines?software.name eq Word, machine is the base entity, while
software is a sub-entity. The API query engine determines how to mesh multiple entities.
Filtering
Filtering is accomplished using the filtering query parameter. A comma is used to separate multiple filters.
All filters are matched in the returned data set. Each filter is specified by an optional entity name, a field name, an
operator, and a value. If the entity is not provided, the base entity is assumed. A period separates an entity and a
field name. A space must separate either end of the operator.
Casting is as broad as possible, however if the field type does not match the operator (for example, contains on
an integer), an error is returned.
Existence
The existence of associated data in sub-entities can be tested using the following operators.
NOTE: Values are not required for these operators:
• ex: Exists
• nex: Does not exist
Examples:
All machines with a recorded location:
/machines?filtering=machine_location.id ex
All machines without a recorded location:
/machines?filtering=machine_location.id nex
Sorting
Sorting is accomplished with the sorting query parameter. Commas can be used to separate multiple sorting
requests. Each sorting request must give the sort entity and field. Optionally, a sort order can be specified. If the
sort order is not specified, the default sort order is ASC (ascending). Sort requests are processed from left to right.
Paging
To apply paging, use the paging query parameter.
To limit the number of records returned, use the limit parameter. For example:
/machines?paging=limit 100
To indicate the index of the first returned record, use theoffset parameter. For example:
/machines?paging=offset 101
To use these parameters together, separate them with a space:
/machines?paging=offset 101 limit 100
These two values are useful for consumers that display the records in a paged format. The values can appear in
either order.
If no limit is specified, the default is 50. To force the server to return every record, set the limit to zero '0' or ALL.
For example:
/machines?paging=limit ALL
If no offset is given, the default is zero '0'.
Shaping
The shaping query parameter limits the amount of returned data is specified. The returned fields for each
associated entity is controlled by two query values. The first is the name of the entity, while the second half of the
pair is the associated level. Name/value pairs are separated by a comma.
Counts
Two flags are available to dictate whether and how the count value is returned in the payload. The count value
indicates the total number of entities in the system that match the query. This can be different than the number of
returned records based upon the limit flag, as described above.
The use_count parameter can be used to prevent a field giving the count of available records from being
included. Returning the count is the default behavior. To do that, set this flag can set to false and sent.
If only the count is needed, use the use_count parameter. Any value except false forces only the count of
matching entities to be returned. This flag can save processing and data transfer time. By default this flag is
false.
Examples
This section provides API usage examples.
The following placeholders appear in these examples. You must replace them in the actual API calls as follows:
• {host} represents the appliance host name or IP address.
• {username} and {password} are the administrator user's credentials for logging in to the appliance
Administration Console.
• {token} is the x-dell-csrf-token returned by login.
• {id} is the ID of the item being updated.
Other variables should be replaced with the data you want to write when creating or updating. For example,
replace "{website}" with “https://www.example.com”.
• Type: PUT
• URL: k1000/ams/shared/api/locations/3
• Headers:
◦ Content-Type:application/json
◦ Accept:application/json
◦ x-dell-csrf-token:
0f0af166283d60b9e0b4697d9fac83a2a0a74aeb7840714dae71b9f993a3aa1fbe8736607
e89511cf6b833e313b0d12d030ef866a85cf2c0db175e29c7b31da7
◦ x-dell-api-version:5
• Body:
{
"name": "Oklahoma",
"description": "OK",
"webSite": "www.example.com",
"address": "123 Main St.",
"phoneNumber": "555-555-5555",
"organizationId": 2
}
NOTE: This example creates a machine in the inventory given the field values below.
• Type: POST
• URL: k1000/api/inventory/machines
• Headers:
◦ Content-Type:application/json
◦ Accept:application/json
◦ x-dell-csrf-token:
0f0af166283d60b9e0b4697d9fac83a2a0a74aeb7840714dae71b9f993a3aa1fbe8736607
e89511cf6b833e313b0d12d030ef866a85cf2c0db175e29c7b31da7
◦ x-dell-api-version:5
• Body:
{
"Machines": [
{
"Name":" Workstation 123",
"Ip":"192.168.101.110",
"Os_number":"10.0.14393",
"User":"user1",
"Cdrom_devices":"NECVMWar VMware SATA CD01",
"Os_name":"Microsoft Windows 10 Pro x64",
"Ram Total":"2048 Bytes",
"Ram_used":"1324.1",
"Pagefile_max_size":"385",
"Ram_max":"33792",
"Bios_identification_code":"",
"Monitor":"Generic Non-PnP Monitor",
"Sound_devices":"High Definition Audio Device",
"Video_controllers":"VMware SVGA 3D:1024 MB",
"Pagefile_size":"385"
}
]
}
Query examples
For reference, here is an example of a query that uses most of the parameters described in this section.
/machines?shaping=machine all,software
limited&sorting=software.name
desc&use_count=false&filtering=id lt 1000&paging=limit
1
To retrieve tickets, along with their submitter and owner details (if available):
Overview
Version information
Version : 11.0
URI scheme
BasePath : /
Consumes
• application/json
Produces
• application/json
Paths
GET /ams/shared/api/accounts
Description
Returns a list of all accounts.
POST /ams/shared/api/accounts/search
Description
Allows for searching of accounts
Responses
HTTP Code Schema
GET /ams/shared/api/accounts/{accountId}
Description
Returns the selected account.
Parameters
Type Name Schema
Responses
200 Account
GET /ams/shared/api/accounts/{accountId}/
organizationAccounts
Description
Returns a list of organization accounts associated with the selected account.
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Create a new registry key for the selected account.
Parameters
Responses
HTTP Code Schema
200 AccountRegistry
GET /ams/shared/api/accounts/{accountId}/registry
Description
Returns a list of registry keys for the selected account
Parameters
Type Name Schema
Responses
HTTP Code Schema
DELETE /ams/shared/api/accounts/{accountId}/registry/
{category}/{registryKey}
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/accounts/{managerId}/managedAccounts
Description
Returns a list of accounts managed by selected account
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Logs the user into the linked device account
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/kkmp/login_user
Description
Logs the user into the linked device
Responses
HTTP Code Schema
200 Response
Description
Returns all locations
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Location
GET /ams/shared/api/locations/{locationId}
Description
Returns the selected location
Parameters
Type Name Schema
Responses
200 Location
PUT /ams/shared/api/locations/{locationId}
Description
Updates the selected location.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Location
DELETE /ams/shared/api/locations/{locationId}
Description
Removes the selected location
Parameters
Type Name Schema
200 No Content
POST /ams/shared/api/organizationAccounts
Description
Creates a new organization account.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 OrganizationAccount
GET /ams/shared/api/organizationAccounts
Description
Return all organization accounts
Parameters
Responses
HTTP Code Schema
200 PagingResponse
DELETE /ams/shared/api/organizationAccounts
Description
Deletes the selected organization accounts.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/organizationAccounts/disable
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/organizationAccounts/enable
Description
Enables the selected organization accounts.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
Description
Searches the organization accounts by the search criteria
Parameters
Type Name Schema
Responses
HTTP Code Schema
DELETE /ams/shared/api/organizationAccounts/{orgAccId}
Description
Deletes a single organization account by id
Parameters
Type Name Schema
Responses
200 No Content
GET /ams/shared/api/organizationAccounts/{orgAccountId}
Description
Gets the selected organization account.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 OrganizationAccount
PUT /ams/shared/api/organizationAccounts/{orgAccountId}
Description
Updates an existing organization account
Parameters
Type Name Schema
200 OrganizationAccount
PUT /ams/shared/api/organizationAccounts/{orgAccountId}/
addEmployees
Description
Adds employees to the associated organization account
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/organizationAccounts/{orgAccountId}/
hasRole
Description
Checks to see if the organization account has a specific role.
Responses
HTTP Code Schema
200 boolean
Description
Add a new registry key to an organization account
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 OrgAccountRegistry
Description
Returns a list of registry keys associated with the selected organization account
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 OrgAccountRegistry
DELETE /ams/shared/api/organizationAccounts/{orgAccountId}/
registry/{category}/{registryKey}
Description
Remove a registry key from an organization account by category
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/organizations
Description
Creates a new organization
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Organization
GET /ams/shared/api/organizations
Description
Returns a list of all organizations
Responses
HTTP Code Schema
DELETE /ams/shared/api/organizations
Description
Removes the selected organizations
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
Description
Disables the selected organizations
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/organizations/enable
Description
Enables the selected organizations
Parameters
Type Name Schema
Responses
200 No Content
GET /ams/shared/api/organizations/list
Description
Returns a list of all organizations
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 PagingResponse
GET /ams/shared/api/organizations/{organizationId}
Description
Returns a specific organization
Responses
HTTP Code Schema
200 Organization
PUT /ams/shared/api/organizations/{organizationId}
Description
Updates an existing organization
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Organization
GET /ams/shared/api/organizations/{organizationId}/account/
{accountId}
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 OrganizationAccount
GET /ams/shared/api/organizations/{organizationId}/history
Description
Returns the history for the organization
Parameters
Type Name Schema
Responses
200 History
GET /ams/shared/api/organizations/{organizationId}/locations
Description
Returns the locations associated with an organization
Parameters
Type Name Description Schema
Responses
HTTP Code Schema
GET /ams/shared/api/organizations/{organizationId}/
organizationAccounts
Description
Returns a list of organization accounts for an organization
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /ams/shared/api/organizations/{organizationId}/roles
Description
Returns all roles associated with an organization
Parameters
Type Name Schema
Responses
HTTP Code Schema
POST /ams/shared/api/products
Description
Creates a new product
Responses
HTTP Code Schema
200 Product
GET /ams/shared/api/products
Description
Returns a list of all products
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Remove the selected products
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/products/update
Description
Updates the specific product
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/products/{productId}
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Product
GET /ams/shared/api/products/{productId}/roles
Description
Returns the roles associated with a product
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Creates a new role
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Role
GET /ams/shared/api/roles
Description
Returns a list of roles
Parameters
Type Name Schema
200 Role
DELETE /ams/shared/api/roles
Description
Removes the selected roles
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/roles/{roleId}
Description
Returns the selected role
Parameters
Responses
HTTP Code Schema
200 ole
PUT /ams/shared/api/roles/{roleId}
Description
Updates the selected role
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 ole
GET /ams/shared/api/roles/{roleId}/organizationAccounts
Description
Returns a list of the organization accounts associated with the selected role
Responses
HTTP Code Schema
GET /ams/shared/api/security/authResult
Description
Fetches result for last authentication attempt for SAML mobile logins
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/security/login
Description
Logs the user in
Parameters
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/security/logout
Description
Logs out the currently logged in user
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 Response
POST /ams/shared/api/security/organization/switch
Description
Changes the organization the user is logged into
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/security/organization/{id}/switchto
Description
Changes the organization the user is logged into
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/security/refreshcontext
Description
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/security/samlLogin
Description
Logs the user in through SAML
Parameters
Type Name Description Schema
Responses
HTTP Code Schema
200 No Content
GET /ams/shared/api/security/supportedAuthTypes
Description
Returns supported authentication types (right now, local and/or SAML)
200 No Content
POST /ams/shared/api/security/verifyPW
Description
Verifies the users password
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 boolean
POST /ams/shared/api/security/verify_2factor
Description
Accepts 2factor token from accounts that require one. Call immediately after login.
verificationData
currentCode Token from generator. Required if 2FA configured for user. string
optional
skipConfiguration Available if 2FA not configured and within skip window boolean
optional
Responses
HTTP Code Schema
200 No Content
POST /ams/shared/api/{roleId}/addOrganizationAccounts
Description
Add an organization account to the selected role
Parameters
Type Name Schema
Responses
200 No Content
POST /ams/shared/api/{roleId}/removeOrganizationAccounts
Description
Remove the organization account from the selected role
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
Definitions
Account
Name Schema
id optional integer
AccountEmail
Name Schema
AccountRegistry
Name Schema
id optional integer
AuthStorage
Name Schema
AuthStorageExpiration
Name Schema
History
Name Schema
id optional integer
id optional integer
HistoryDetailDatetime
Name Schema
id optional integer
HistoryDetailReference
Name Schema
id optional integer
id optional integer
LinkedAccountToken
Name Schema
id optional integer
Location
Name Schema
id optional integer
Notification
Name Schema
id optional integer
OrgAccountRegistry
Name Schema
id optional integer
id optional integer
OrganizationAccount
Name Schema
id optional integer
Product
id optional string
Role
Name Schema
id optional integer
SystemSetting
Overview
Version information
Version : 11.0
URI scheme
BasePath : /api/asset
Consumes
• application/json
Produces
• application/json
Paths
GET /api/asset/archived_devices/{id}
Description
Returns the archived asset associated with the id
Responses
HTTP Code Schema
GET /api/asset/asset_status
Description
Returns all barcodes
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/asset/asset_status/{id}
Description
Returns the barcode associated with the id
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Creates a new asset
Parameters
Type Name Schema
assetData
Name Schema
Responses
HTTP Code Schema
200 string
GET /api/asset/assets
Description
Returns a list of all assets
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/asset/assets/types
Description
Returns a list of all asset types
Responses
HTTP Code Schema
GET /api/asset/assets/version
Description
Returns the version associated with this API endpoint.
200 string
GET /api/asset/assets/{assetID}/attachment/{fieldName}
Description
Returns an attachment
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string(binary)
POST /api/asset/assets/{id}
Description
Updates an asset
Parameters
assetData
Name Schema
Responses
HTTP Code Schema
200 string
GET /api/asset/assets/{id}
Description
Returns the asset associated with the id
Parameters
Type Name Schema
Responses
PUT /api/asset/assets/{id}
Description
Updates an asset
Parameters
Type Name Schema
assetData
Name Schema
Responses
HTTP Code Schema
200 string
DELETE /api/asset/assets/{id}
Description
Removes an asset
Parameters
Responses
HTTP Code Schema
200 string
POST /api/asset/assets/{id}/archive
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
GET /api/asset/assets/{id}/barcodes
Description
Returns all barcodes associated with the specified asset.
Parameters
Type Name Schema
POST /api/asset/assets/{id}/cancel_archive
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
POST /api/asset/barcodes
Description
Creates a new barcode
Parameters
Type Name Schema
barcodeData
Name Schema
200 string
GET /api/asset/barcodes
Description
Returns all barcodes
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/asset/barcodes/version
Responses
HTTP Code Schema
200 string
GET /api/asset/barcodes/{id}
Description
Returns the barcode associated with the id
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Updates the selected barcode
Parameters
Type Name Schema
barcodeData
Name Schema
Responses
HTTP Code Schema
200 string
DELETE /api/asset/barcodes/{id}
Description
Removes the selected barcode
Parameters
Type Name Schema
200 string
GET api/asset/archived_devices/version
Description
Returns the version associated with this API endpoint.
Responses
HTTP Code Schema
200 string
Definitions
archive_asset_device
Name Schema
id optional integer
asset
Name Schema
id optional integer
asset_status
Name Schema
id optional integer
barcode
Name Description Schema
asset_id required Only valid when creating new barcode. Required, used to associate integer
with a specific asset
barcode_data string
required
barcode_format string
required
barcode_name string
required
first_scanned_geolocation string
read-only
first_scanned_method string
read-only
first_scanned_user string
read-only
id optional integer
last_scanned_geolocation string
read-only
last_scanned_method string
read-only
last_scanned_user string
read-only
scanned_geolocation
Geolocation of scan. Can be UNKNOWN string
required
machine
Name Schema
id optional integer
ip optional string
software
Name Schema
id optional integer
Create an asset and upload attachments to both custom fields at the same time:
POST /api/asset/assets
Content-Type: multipart/form-data; boundary=—————————————290943174853897038718644
----------------------------290943174853897038718644
Content-Disposition: form-data; name="Assets"
[ {
"asset_type_id" : 5,
"name" : "TestCreateWithAttachments",
"field_10002" : { "attachmentSet" : "AttachmentOne" },
"field_10003" : { "attachmentSet" : "AttachmentTwo" }
} ]
----------------------------290943174853897038718644
Content-Disposition: form-data; name="AttachmentOne"; filename="SomeFile.png"
Content-Type: image/png
... The binary PNG file data ...
----------------------------290943174853897038718644
Content-Disposition: form-data; name="AttachmentTwo"; filename="SomeOtherFile.png"
Content-Type: image/png
... The binary PNG file data ...
----------------------------290943174853897038718644
Overview
Version information
Version : 11.0
URI scheme
BasePath : /api/inventory
Consumes
• application/json
Produces
• application/json
Paths
POST /api/inventory/machines/
Description
Creates or updates inventory data. The only way to send new inventory data is via this Machine entity. It is
suggested that POST be used for new machines and PUT for machine updates. However, as a convenience
for clients, the POST route can be used to update the inventory for existing machines. See Appendix B for an
Responses
HTTP Code Schema
GET /api/inventory/machines/
Description
Retrieves the data for any matching machines.
Parameters
Type Name Description Schema Default
Query filterOptions The name of join set to insert in base query string ""
optional
Responses
GET /api/inventory/machines/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/machines/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Parameters
Type Name Schema
PUT /api/inventory/machines/{id}/
Description
Updates machine inventory data for the given ID. If a KUID is sent in the request body, it must match the KUID for
the machine with the given ID. See Appendix B for an example of the request body format.
Responses
HTTP Code Schema
POST /api/inventory/machines/{id}/force/
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
Responses
HTTP Code Schema
200 string
GET /api/inventory/nodes/
Description
Retrieves the data for any matching agentless nodes.
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/nodes/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Parameters
Type Name Schema
Responses
200 string
POST /api/inventory/operating_systems/
Responses
HTTP Code Schema
200 string
GET /api/inventory/operating_systems/
Description
Retrieves the data for any matching operating systems. The operating system for a machine are reported during
inventory.
Parameters
Type Name Schema
Responses
GET /api/inventory/operating_systems/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/operating_systems/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Parameters
Type Name Schema
200 string
POST /api/inventory/processes/
Responses
HTTP Code Schema
200 string
GET /api/inventory/processes/
Description
Retrieves the data for any matching processes. The running processes for a machine are reported during
inventory.
Parameters
Type Name Schema
GET /api/inventory/processes/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/processes/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
POST /api/inventory/services/
Responses
HTTP Code Schema
200 string
GET /api/inventory/services/
Description
Retrieves the data for any matching NT services. The list of services for a Windows machine are reported during
inventory.
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/inventory/services/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/services/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
POST /api/inventory/softwares/
Responses
HTTP Code Schema
200 string
GET /api/inventory/softwares/
Description
Retrieves the data for any matching software. The installed software titles for a machine are reported during
inventory.
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/inventory/softwares/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/softwares/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Parameters
Responses
HTTP Code Schema
200 string
POST /api/inventory/startup_programs/
Responses
HTTP Code Schema
200 string
GET /api/inventory/startup_programs/
Description
Retrieves the data for any matching startup programs. The list of startup programs for a machine are reported
during inventory.
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/inventory/startup_programs/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/inventory/startup_programs/{id}/
Description
Retrieves the data for the specific ID given. All query parameters are available.
Responses
HTTP Code Schema
200 string
Definitions
Catalog.Sam_Catalog
Name Schema
Id optional string
Dell_Inventory
Name Schema
Dell_Inventory_Log
Name Schema
Dell_Machine_Status
Name Schema
Dell_Pkg_Update_History
Name Schema
Id optional integer
Kbsys.Patch
Id optional string
Id optional integer
Machine
Name Schema
Id optional integer
Ip optional string
Machine_Bitlocker_Volume
Name Schema
Id optional integer
Self_Encryption_Drive_Encryption_Method string
optional
Machine_Chromeos_Details
Name Schema
Id optional integer
Machine_Custom_Inventory
Name Schema
Id optional integer
Id optional integer
Machine_Ddpe
Name Schema
Id optional integer
Machine_Ddpe_Volume
Name Schema
Id optional integer
Machine_Disks
Name Schema
Id optional integer
Id optional integer
Machine_Filevault_Volume
Name Schema
Id optional integer
Machine_Intel_Amt
Name Schema
Id optional integer
Machine_Location
Name Schema
Id optional integer
Machine_Mobile
Name Schema
Id optional integer
Machine_Nics
Name Schema
Id optional integer
Ip optional string
Machine_Replitem
Name Schema
Machine_Snmp_Data
Name Schema
Machine_Tpm
Name Schema
Id optional integer
Mi_Attempt
Node
Name Schema
Id optional integer
Ip optional string
Node_Snmp_If
Name Schema
Id optional integer
Node_Snmp_System
Name Schema
Id optional integer
Ntservice
Name Schema
Id optional integer
Operating_Systems
Name Schema
Id optional integer
Sp optional integer
Patch_Machine_Status
Name Schema
Patch_Schedule_Run_Machine
Name Schema
Id optional integer
Process
Name Schema
Id optional integer
Id optional integer
Sam_Meter_Data
Name Schema
Id optional integer
Software
Name Schema
Id optional integer
Id optional integer
Overview
Version information
Version : 11.0
URI scheme
BasePath : /api/mi
Consumes
• application/json
Produces
• application/json
Paths
PUT /api/managed_install/managed_installs/{id}/
add_to_machines
Description
Parameters
Type Name Description Schema
Body machines required A payload with the machines to update. For example: json
{ "Machines" : ["id"]}
Responses
HTTP Code Schema
200 No Content
GET /api/mi/compatible_machines
Description
Returns a list of compatible machines
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/mi/compatible_machines/version
Description
Returns the API version for this endpoint.
Responses
HTTP Code Schema
200 string
GET /api/mi/files
Description
Returns the list of files available to managed installs.
Parameters
Responses
HTTP Code Schema
GET /api/mi/files/version
Description
Returns the version of this api endpoint.
Responses
HTTP Code Schema
200 string
GET /api/mi/machines
Description
Returns all the devices
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/mi/machines/version
Description
Returns the version for this end point.
Responses
HTTP Code Schema
200 string
GET /api/mi/machines/{id}
Description
Returns the managed install associated with a device.
Parameters
Responses
HTTP Code Schema
GET /api/mi/managed_installs
Description
Returns a list of all managed installs.
Parameters
Type Name Schema
GET /api/mi/managed_installs/version
Description
Returns the current version of this API endpoint.
Responses
HTTP Code Schema
200 string
GET /api/mi/managed_installs/{id}
Description
Gets the details of this managed install
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
GET /api/mi/managed_installs/{id}/compatible_machines
Description
Returns a list of compatible devices for this managed install.
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Gets the file associated with this managed install.
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
PUT /api/mi/managed_installs/{id}/remove_from_machines
Description
Removed devices from a managed install.
Parameters
Responses
HTTP Code Schema
200 No Content
Overview
Version information
Version : 11.0
URI scheme
BasePath : /api/script
Consumes
• application/json
Produces
• application/json
Paths
POST /api/script
Description
Creates a new script
Responses
HTTP Code Schema
200 ScriptShellDTO
GET /api/script/runStatus/{runId}
Description
Get status of progress script
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 RunStatusDTO
GET /api/script/{scriptId}
Description
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 ScriptShellDTO
PUT /api/script/{scriptId}
Description
Updates a specific script
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 ScriptShellDTO
DELETE /api/script/{scriptId}
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
POST /api/script/{scriptId}/actions/run
Description
Executes a specific script
Parameters
Type Name Description Schema
Responses
HTTP Code Schema
200 integer
Description
Get all dependency of script
Parameters
Type Name Schema
Responses
HTTP Code Schema
POST /api/script/{scriptId}/dependency/{dependencyName}
Description
Uploads and attaches a new dependency
Parameters
Type Name Schema
200 DependencyDTO
GET /api/script/{scriptId}/dependency/{dependencyName}
Description
Get a specific dependency of script
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 DependencyDTO
PUT /api/script/{scriptId}/dependency/{dependencyName}
Description
Update a specific dependency
Parameters
Responses
HTTP Code Schema
200 DependencyDTO
DELETE /api/script/{scriptId}/dependency/{dependencyName}
Description
Removes a specific dependency of script
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 No Content
GET /api/script/{scriptId}/dependency/{dependencyName}/
download
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 file
POST /api/script/{scriptId}/task
Description
Creates a new task
Parameters
Type Name Schema
Responses
HTTP Code Schema
Description
Update a specific task
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 TaskDTO
PUT /api/script/{scriptId}/task/{orderId}
Description
Update a specific task
Parameters
Type Name Schema
DELETE /api/script/{scriptId}/task/{orderId}
Description
Removes a specific task of script
Parameters
Type Name Schema
Responses
HTTP Code Schema
GET /api/script/{scriptId}/tasks
Description
Get all tasks of specific script
Parameters
Responses
HTTP Code Schema
GET /api/scripts
Description
Get all founded scripts
Parameters
Type Name Description Schema
Query compatibleForMachineId
machine identificator string
optional
Query searchText text to search is the Description and Notes fields of a string
optional script
Responses
HTTP Code Schema
DependencyDTO
Name Schema
MachineDTO
Name Schema
ip optional string
RunStatusDTO
Name Schema
id optional integer(integer)
ScriptOnlineDTO
Name Schema
id optional integer(integer)
ScriptShellDTO
Name Schema
id optional integer(integer)
TaskDTO
Name Schema
Overview
Version information
Version : 11.0
URI scheme
BasePath : /api/user
Consumes
• application/json
Produces
• application/json
Paths
GET /api/users/me/
Description
Gets the user information associated with the currently logged in user.
200 User
GET /api/users/version/
Description
Returns the latest API version for the entity. If there is no specific version, the overall API version is returned.
Responses
HTTP Code Schema
200 string
GET /api/users/{id}/permissions/
Description
Gets the list of permissions associated with the user.
Parameters
Type Name Schema
Responses
200 Permissions
Definitions
Permissions
Name Schema
User
Name Schema
Overview
Version information
Version : 11.0
URI scheme
BasePath : /api/service_desk
Consumes
• application/json
Produces
• application/json
Paths
GET /api/service_desk/queues/
Description
Returns a list of all queues
Query filterOptions The name of join set to insert in base query string ""
optional
Responses
HTTP Code Schema
Response 200
Name Schema
GET /api/service_desk/queues/fields/version
Description
Returns the version associated with this API endpoint.
200 string
GET /api/service_desk/queues/version
Description
Returns the version associated with this API endpoint.
Responses
HTTP Code Schema
200 string
GET /api/service_desk/queues/{id}
Description
Returns the queue associated with the id
Parameters
Type Name Schema
Responses
HTTP Code Schema
Response 200
Name Schema
GET /api/service_desk/queues/{id}/patterns/{id}
Description
Returns the queue associated with the id
Parameters
Type Name Schema
Responses
Response 200
Name Schema
GET /api/service_desk/queues/{id}/ticket_template
Description
Returns a ticket template for the specified queue, usable for ticket creation
Parameters
Type Name Description Schema Default
Responses
HTTP Code Schema
Response 200
Name Schema
Description
Returns a list of all a queue’s fields
Parameters
Type Name Description Schema Default
Responses
HTTP Code Schema
GET /api/service_desk/queues/{queueID}/patterns
Description
Returns a list of a queue’s patterns
Parameters
Type Name Description Schema Default
Responses
HTTP Code Schema
Response 200
Name Schema
POST /api/service_desk/tickets
Description
Creates a new ticket
Parameters
Type Name Schema
ticketData
Responses
HTTP Code Schema
200 string
GET /api/service_desk/tickets
Description
Returns a list of all tickets. Sub-entities that can be used on shaping and filtering directives include owner,
submitter, queue, category, priority, status, machine, asset, related_tickets, referring_tickets
Parameters
Type Name Description Schema
Query paging optional Paging directive including limit and offset string
Responses
HTTP Code Schema
Name Schema
POST /api/service_desk/tickets/stats
Description
Performs an arbitrary number of fetch requests
Parameters
Type Name Schema
ticketStatsRequestData
Name Schema
Responses
HTTP Code Schema
Response 200
Name Schema
GET /api/service_desk/tickets/version
Responses
HTTP Code Schema
200 string
POST /api/service_desk/tickets/{id}
Description
Updates a ticket
Parameters
Type Name Schema
ticketData
Name Schema
Responses
HTTP Code Schema
200 string
GET /api/service_desk/tickets/{id}
Parameters
Type Name Description Schema Default
Query applyPattern Applies ticket template associated with ticket if any string ""
optional
Responses
HTTP Code Schema
Response 200
Name Schema
PUT /api/service_desk/tickets/{id}
Description
Parameters
Type Name Schema
ticketData
Name Schema
Responses
HTTP Code Schema
200 string
DELETE /api/service_desk/tickets/{id}
Description
Removes a ticket
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
Description
Approves a ticket
Parameters
Type Name Schema
approvalData
Name Schema
Responses
HTTP Code Schema
200 string
POST /api/service_desk/tickets/{id}/clearApproval
Description
Clears approval of a previously approved/rejected ticket
Responses
HTTP Code Schema
200 string
Description
Returns a ticket template for a cloned ticket
Parameters
Type Name Schema
Responses
HTTP Code Schema
Response 200
Name Schema
PUT /api/service_desk/tickets/{id}/move_to_queue/{queueID}
Description
Moves a ticket to a different queue
Parameters
Type Name Schema
200 string
POST /api/service_desk/tickets/{id}/reject
Description
Rejects a ticket
Parameters
Type Name Schema
approvalData
Name Schema
Responses
HTTP Code Schema
200 string
PUT /api/service_desk/tickets/{id}/switch_pattern/{patternID}
Description
Changes ticket to different pattern
Responses
HTTP Code Schema
200 string
PUT /api/service_desk/tickets/{ticketID}/change/{changeID}
Description
Updates a ticket change. For now only supports adjusting owner only setting.
Parameters
Type Name Schema
changeData
Name Schema
Responses
200 string
GET /api/service_desk/tickets/{ticketID}/changes
Description
Returns a list of all changes for a ticket
Parameters
Type Name Schema
Responses
HTTP Code Schema
Response 200
Name Schema
Description
Returns an attachment
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string(binary)
POST /api/service_desk/tickets/{ticketID}/work
Description
Creates a new ticket work item
Parameters
Type Name Schema
Name Schema
Responses
HTTP Code Schema
200 string
GET /api/service_desk/tickets/{ticketID}/work
Description
Returns a list of all work items for the specified ticket
Parameters
Type Name Schema
Responses
Response 200
Name Schema
GET /api/service_desk/tickets/{ticketID}/work/{workID}
Description
Returns the asset associated with the id
Parameters
Type Name Schema
Responses
HTTP Code Schema
Response 200
Name Schema
Description
Removes a ticket work item
Parameters
Type Name Schema
Responses
HTTP Code Schema
200 string
Definitions
asset
Name Schema
id optional integer
hd_category
Name Schema
id optional integer
hd_impact
Name Schema
id optional integer
hd_priority
Name Schema
id optional integer
hd_queue
Name Description Schema
allow_all_approvers integer
optional
allow_all_users integer
optional
allow_delete integer
optional
allow_manager_comment_via_userui integer
optional
allow_owners_edit_all_comment integer
optional
allow_owners_via_adminui integer
optional
allow_parent_close integer
optional
allow_users_edit_own_comment integer
optional
alt_email_addr string
optional
archive_interval string
optional
auto_add_cclist_on_comment integer
optional
categories optionalhd_category data returned when shaping=categories is requested < hd_category > array
conflict_warning_enabled integer
optional
create_users_on_email integer
optional
default_category_id integer
optional
default_impact_id integer
optional
default_priority_id integer
optional
default_status_id integer
optional
email_user string
optional
id optional integer
impacts optional hd_impact data returned when shaping=impacts is requested < hd_impact > array
owners_only_comments integer
optional
pop_password_enc string
optional
pop_server string
optional
pop_username string
optional
priorities optional hd_priority data returned when shaping=priorities is requested < hd_priority > array
purge_interval string
optional
show_new_ticket_attachments integer
optional
show_new_ticket_comments integer
optional
smtp_password_enc string
optional
smtp_server string
optional
smtp_username string
optional
statuses optional hd_status data returned when shaping=statuses is requested < object > array
hd_status
Name Schema
id optional integer
hd_ticket
Name Description Schema
hd_queue_id integer
optional
id optional integer
is_manual_due_date integer
optional
hd_ticket_change
Name Description Schema
attachments attachment metadata returned when shaping=attachments requested < object > array
optional
hd_ticket_id integer
optional
id optional integer
owners_only integer
optional
hd_work
Name Description Schema
hd_ticket_id integer
optional
id optional integer
machine
Name Schema
id optional integer
statistics_request
Name Schema
statistics_response
Name Schema
user
id optional integer
Retrieve an attachment:
To retrieve an attachment, you must provide the ticket ID, change ID, and attachment ID. These values can be
obtained using the above example, Determine what attachments are available with a ticket:.
GET /api/service_desk/tickets/{ticket ID}/changes/{change ID}/attachments/{attachment ID}
CAUTION: A CAUTION icon indicates potential damage to hardware or loss of data if instructions are not
followed.
IMPORTANT, NOTE, TIP, MOBILE, or VIDEO: An information icon indicates supporting information.
KACE Systems Management Appliance API Reference Guide
Updated - April 2021
Software Version - 11.1