All URIs are relative to https://<sub_domain>.api.kandji.io
| Method | HTTP request | Description |
|---|---|---|
| create_ade_integration | POST /api/v1/integrations/apple/ade/ | Create ADE integration |
| delete_ade_integration | DELETE /api/v1/integrations/apple/ade/{ade_token_id} | Delete ADE integration |
| download_ade_public_key | GET /api/v1/integrations/apple/ade/public_key/ | Download ADE public key |
| get_ade_device | GET /api/v1/integrations/apple/ade/devices/{device_id} | Get ADE device |
| get_ade_integration | GET /api/v1/integrations/apple/ade/{ade_token_id} | Get ADE integration |
| list_ade_devices | GET /api/v1/integrations/apple/ade/devices | List ADE devices |
| list_ade_integrations | GET /api/v1/integrations/apple/ade | List ADE integrations |
| list_devices_associated_to_ade_token | GET /api/v1/integrations/apple/ade/{ade_token_id}/devices | List devices associated to ADE token |
| renew_ade_integration | POST /api/v1/integrations/apple/ade/{ade_token_id}/renew | Renew ADE integration |
| update_ade_device | PATCH /api/v1/integrations/apple/ade/devices/{device_id} | Update ADE device |
| update_ade_integration | PATCH /api/v1/integrations/apple/ade/{ade_token_id} | Update ADE integration |
AutomatedDeviceEnrollmentIntegrationsCreateAdeIntegration200Response create_ade_integration(blueprint_id, email, file, phone)
Create ADE integration
This request will create a new ADE integration.
The default blueprint_id, phone number, email address, and MDM server token file downloaded from ABM are required and must be sent in the request.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.models.automated_device_enrollment_integrations_create_ade_integration200_response import AutomatedDeviceEnrollmentIntegrationsCreateAdeIntegration200Response
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
blueprint_id = 'blueprint_id_example' # str |
email = 'email_example' # str |
file = None # bytearray | This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API.
phone = 'phone_example' # str |
try:
# Create ADE integration
api_response = api_instance.create_ade_integration(blueprint_id, email, file, phone)
print("The response of AutomatedDeviceEnrollmentIntegrationsApi->create_ade_integration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->create_ade_integration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| blueprint_id | str | ||
| str | |||
| file | bytearray | This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API. | |
| phone | str |
AutomatedDeviceEnrollmentIntegrationsCreateAdeIntegration200Response
- Content-Type: multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * Allow - * Connection - * Content-Length - * Content-Security-Policy - * Content-Type - * Date - * Feature-Policy - * Referrer-Policy - * Server - * Strict-Transport-Security - * Vary - * X-Content-Type-Options - * X-Frame-Options - * X-XSS-Protection - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_ade_integration(ade_token_id)
Delete ADE integration
This is a HIGHLY destructive action.
Deleting an ADE token will unassign the associated device records. For currently enrolled devices that were assigned via the delete ADE integration will not be impacted until they are wiped and reprovisioned. This action is essentially the same as removing an ADE token from MDM and then adding it back.
If applicable, be sure to reassign the device records in ABM.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
ade_token_id = 'ade_token_id_example' # str |
try:
# Delete ADE integration
api_instance.delete_ade_integration(ade_token_id)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->delete_ade_integration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| ade_token_id | str |
void (empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | * Allow - * Connection - * Content-Security-Policy - * Date - * Feature-Policy - * Referrer-Policy - * Server - * Set-Cookie - * Strict-Transport-Security - * Vary - * X-Content-Type-Options - * X-Frame-Options - * X-Xss-Protection - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str download_ade_public_key()
Download ADE public key
This request returns the public key used to create an MDM server connection in Apple Business Manager.
The encoded information needs to be saved to a file with the .pem format and then uploaded to ABM.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
try:
# Download ADE public key
api_response = api_instance.download_ade_public_key()
print("The response of AutomatedDeviceEnrollmentIntegrationsApi->download_ade_public_key:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->download_ade_public_key: %s\n" % e)This endpoint does not need any parameter.
str
- Content-Type: Not defined
- Accept: application/x-x509-ca-cert
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * Allow - * Connection - * Content-Length - * Content-Security-Policy - * Content-Type - * Date - * Feature-Policy - * Referrer-Policy - * Server - * Set-Cookie - * Strict-Transport-Security - * Vary - * X-Content-Type-Options - * X-Frame-Options - * X-Xss-Protection - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response get_ade_device(device_id)
Get ADE device
Get information about a specific Automated Device Enrollment device.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.models.automated_device_enrollment_integrations_get_ade_device200_response import AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
device_id = 'device_id_example' # str |
try:
# Get ADE device
api_response = api_instance.get_ade_device(device_id)
print("The response of AutomatedDeviceEnrollmentIntegrationsApi->get_ade_device:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->get_ade_device: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| device_id | str |
AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * Content-Type - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_ade_integration(ade_token_id)
Get ADE integration
This request returns a specific ADE integration based on the ade_token_id passed.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
ade_token_id = 'ade_token_id_example' # str |
try:
# Get ADE integration
api_instance.get_ade_integration(ade_token_id)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->get_ade_integration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| ade_token_id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlueprintsListBlueprints200Response list_ade_devices(blueprint_id=blueprint_id, user_id=user_id, dep_account=dep_account, device_family=device_family, model=model, os=os, profile_status=profile_status, serial_number=serial_number, page=page)
List ADE devices
Get a list of Automated Device Enrollment devices.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.models.blueprints_list_blueprints200_response import BlueprintsListBlueprints200Response
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
blueprint_id = 'fce0cc58-caa5-40d2-a0d7-a0b257127ec5' # str | Return results "containing" the specified blueprint id (optional)
user_id = '5344c996-8823-4b37-8d6e-8515fc7c3a0a' # str | "exact" match on user ID value (example: 5344c996-8823-4b37-8d6e-8515fc7c3a0a) (optional)
dep_account = '' # str | The ADE token UUID (optional)
device_family = '' # str | iPad, iPhone, iPod, Mac, AppleTV, or Vision (optional)
model = 'MacBook Air' # str | Return model results "containing" the specified model string. - "iPad (8th Generation)", "MacBook Air" (optional)
os = '' # str | iOS, iPadOS, OSX, tvOS, or visionOS (optional)
profile_status = '' # str | The automated device enrollment profile assignment status - assigned, empty, pushed, removed (optional)
serial_number = '' # str | Search for a specific device by Serial Number. If partial serial number is provided in the query, all device containing the partial string will be returned. (optional)
page = '1' # str | Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. (optional)
try:
# List ADE devices
api_response = api_instance.list_ade_devices(blueprint_id=blueprint_id, user_id=user_id, dep_account=dep_account, device_family=device_family, model=model, os=os, profile_status=profile_status, serial_number=serial_number, page=page)
print("The response of AutomatedDeviceEnrollmentIntegrationsApi->list_ade_devices:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->list_ade_devices: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| blueprint_id | str | Return results "containing" the specified blueprint id | [optional] |
| user_id | str | "exact" match on user ID value (example: 5344c996-8823-4b37-8d6e-8515fc7c3a0a) | [optional] |
| dep_account | str | The ADE token UUID | [optional] |
| device_family | str | iPad, iPhone, iPod, Mac, AppleTV, or Vision | [optional] |
| model | str | Return model results "containing" the specified model string. - "iPad (8th Generation)", "MacBook Air" | [optional] |
| os | str | iOS, iPadOS, OSX, tvOS, or visionOS | [optional] |
| profile_status | str | The automated device enrollment profile assignment status - assigned, empty, pushed, removed | [optional] |
| serial_number | str | Search for a specific device by Serial Number. If partial serial number is provided in the query, all device containing the partial string will be returned. | [optional] |
| page | str | Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. | [optional] |
BlueprintsListBlueprints200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * Content-Type - |
| 400 | Bad Request | * Content-Type - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_ade_integrations()
List ADE integrations
This request returns a list of configured ADE integrations.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
try:
# List ADE integrations
api_instance.list_ade_integrations()
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->list_ade_integrations: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutomatedDeviceEnrollmentIntegrationsListDevicesAssociatedToAdeToken200Response list_devices_associated_to_ade_token(ade_token_id, page=page)
List devices associated to ADE token
This request returns a list of devices associated with a specified ade_token_id as well as their enrollment status.
When the mdm_device key value is null, this can be taken as an indication that the device is awaiting enrollment.
When data is present within the mdm_device dictionary, you can reference the device_id as the ID of the enrolled device record.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.models.automated_device_enrollment_integrations_list_devices_associated_to_ade_token200_response import AutomatedDeviceEnrollmentIntegrationsListDevicesAssociatedToAdeToken200Response
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
ade_token_id = 'ade_token_id_example' # str |
page = '1' # str | Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. (optional)
try:
# List devices associated to ADE token
api_response = api_instance.list_devices_associated_to_ade_token(ade_token_id, page=page)
print("The response of AutomatedDeviceEnrollmentIntegrationsApi->list_devices_associated_to_ade_token:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->list_devices_associated_to_ade_token: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| ade_token_id | str | ||
| page | str | Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. | [optional] |
AutomatedDeviceEnrollmentIntegrationsListDevicesAssociatedToAdeToken200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * Allow - * Connection - * Content-Length - * Content-Security-Policy - * Content-Type - * Date - * Feature-Policy - * Referrer-Policy - * Server - * Set-Cookie - * Strict-Transport-Security - * Vary - * X-Content-Type-Options - * X-Frame-Options - * X-Xss-Protection - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
renew_ade_integration(ade_token_id, blueprint_id, email, file, phone)
Renew ADE integration
This request will renew an existing ADE integration.
The default blueprint_id, phone number, email address, and MDM server token file from the associated MDM server in ABM are required and must be sent in the request.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
ade_token_id = 'ade_token_id_example' # str |
blueprint_id = 'blueprint_id_example' # str |
email = 'email_example' # str |
file = None # bytearray | This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API.
phone = 'phone_example' # str |
try:
# Renew ADE integration
api_instance.renew_ade_integration(ade_token_id, blueprint_id, email, file, phone)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->renew_ade_integration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| ade_token_id | str | ||
| blueprint_id | str | ||
| str | |||
| file | bytearray | This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API. | |
| phone | str |
void (empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response update_ade_device(device_id, body=body)
Update ADE device
Update a specific Automated Device Enrollment device's blueprint assignment, user assignment, and asset tag.
device_id (path parameter): The unique identifier of the device.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.models.automated_device_enrollment_integrations_get_ade_device200_response import AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
device_id = 'device_id_example' # str |
body = {"asset_tag":"123456","blueprint_id":"3013eb7c-d0c1-4689-852a-50776a92036b","user_id":"5344c996-8823-4b37-8d6e-8515fc7c3a0a"} # str | (optional)
try:
# Update ADE device
api_response = api_instance.update_ade_device(device_id, body=body)
print("The response of AutomatedDeviceEnrollmentIntegrationsApi->update_ade_device:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->update_ade_device: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| device_id | str | ||
| body | str | [optional] |
AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * Content-Type - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_ade_integration(ade_token_id, body=body)
Update ADE integration
This request will update the default blueprint, phone number, and email address in an existing ADE integration.
The default blueprint_id, phone number, and email address must be sent in the request.
- Bearer (API Token) Authentication (bearer):
import kandji
from kandji.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://<sub_domain>.api.kandji.io
# See configuration.py for a list of all supported configuration parameters.
configuration = kandji.Configuration(
host = "https://<sub_domain>.api.kandji.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Token): bearer
configuration = kandji.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kandji.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kandji.AutomatedDeviceEnrollmentIntegrationsApi(api_client)
ade_token_id = 'ade_token_id_example' # str |
body = {"blueprint_id":"bf21d9cf-17cf-48b3-890d-7bc27c241bb7","email":"example@accuhive.io","phone":"1234567890"} # str | (optional)
try:
# Update ADE integration
api_instance.update_ade_integration(ade_token_id, body=body)
except Exception as e:
print("Exception when calling AutomatedDeviceEnrollmentIntegrationsApi->update_ade_integration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| ade_token_id | str | ||
| body | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]