All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazebit.query.connector.kandji.api.AutomatedDeviceEnrollmentIntegrationsApi Maven / Gradle / Ivy

The newest version!
package com.blazebit.query.connector.kandji.api;

import com.blazebit.query.connector.kandji.invoker.ApiException;
import com.blazebit.query.connector.kandji.invoker.ApiClient;
import com.blazebit.query.connector.kandji.invoker.ApiResponse;
import com.blazebit.query.connector.kandji.invoker.Configuration;
import com.blazebit.query.connector.kandji.invoker.Pair;

import jakarta.ws.rs.core.GenericType;

import com.blazebit.query.connector.kandji.model.CreateAdeIntegration200Response;
import java.io.File;
import com.blazebit.query.connector.kandji.model.GetAdeIntegration200Response;
import com.blazebit.query.connector.kandji.model.ListAdeDevices200Response;
import com.blazebit.query.connector.kandji.model.ListAdeDevices200ResponseResultsInner;
import com.blazebit.query.connector.kandji.model.ListAdeDevices400Response;
import com.blazebit.query.connector.kandji.model.ListAdeIntegrations200Response;
import com.blazebit.query.connector.kandji.model.ListDevicesAssociatedToAdeToken200Response;
import com.blazebit.query.connector.kandji.model.RenewAdeIntegration200Response;
import com.blazebit.query.connector.kandji.model.UpdateAdeDevice200Response;
import com.blazebit.query.connector.kandji.model.UpdateAdeDeviceRequest;
import com.blazebit.query.connector.kandji.model.UpdateAdeIntegrationRequest;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-30T07:19:31.168100307Z[Etc/UTC]", comments = "Generator version: 7.10.0")
public class AutomatedDeviceEnrollmentIntegrationsApi {
  private ApiClient apiClient;

  public AutomatedDeviceEnrollmentIntegrationsApi() {
    this(Configuration.getDefaultApiClient());
  }

  public AutomatedDeviceEnrollmentIntegrationsApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * Get the API client
   *
   * @return API client
   */
  public ApiClient getApiClient() {
    return apiClient;
  }

  /**
   * Set the API client
   *
   * @param apiClient an instance of API client
   */
  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * 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.
   * @param blueprintId  (optional)
   * @param email  (optional)
   * @param _file  (optional)
   * @param phone  (optional)
   * @return CreateAdeIntegration200Response
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Response Details
Status Code Description Response Headers
200 Create integration * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public CreateAdeIntegration200Response createAdeIntegration(String blueprintId, String email, File _file, String phone) throws ApiException { return createAdeIntegrationWithHttpInfo(blueprintId, email, _file, phone).getData(); } /** * 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. * @param blueprintId (optional) * @param email (optional) * @param _file (optional) * @param phone (optional) * @return ApiResponse<CreateAdeIntegration200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Create integration * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse createAdeIntegrationWithHttpInfo(String blueprintId, String email, File _file, String phone) throws ApiException { // Form parameters Map localVarFormParams = new LinkedHashMap<>(); if (blueprintId != null) { localVarFormParams.put("blueprint_id", blueprintId); } if (email != null) { localVarFormParams.put("email", email); } if (_file != null) { localVarFormParams.put("file", _file); } if (phone != null) { localVarFormParams.put("phone", phone); } String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("multipart/form-data"); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.createAdeIntegration", "/api/v1/integrations/apple/ade/", "POST", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Delete ADE integration * # **WARNING!** This is a HIGHLY destructive action. Deleting an ADE token will unassign the associated device records from Kandji. For currently enrolled devices that were assigned to Kandji 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. * @param adeTokenId (required) * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
204 Delete integration * 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 -
*/ public void deleteAdeIntegration(String adeTokenId) throws ApiException { deleteAdeIntegrationWithHttpInfo(adeTokenId); } /** * Delete ADE integration * # **WARNING!** This is a HIGHLY destructive action. Deleting an ADE token will unassign the associated device records from Kandji. For currently enrolled devices that were assigned to Kandji 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. * @param adeTokenId (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
204 Delete integration * 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 -
*/ public ApiResponse deleteAdeIntegrationWithHttpInfo(String adeTokenId) throws ApiException { // Check required parameters if (adeTokenId == null) { throw new ApiException(400, "Missing the required parameter 'adeTokenId' when calling deleteAdeIntegration"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/{ade_token_id}" .replaceAll("\\{ade_token_id}", apiClient.escapeString(adeTokenId.toString())); String localVarAccept = apiClient.selectHeaderAccept(); String localVarContentType = apiClient.selectHeaderContentType("multipart/form-data"); String[] localVarAuthNames = new String[] {"bearerAuth"}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.deleteAdeIntegration", localVarPath, "DELETE", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, null, false); } /** * 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. * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Download public key * Allow -
* Connection -
* Content-Length -
* 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 -
*/ public void downloadAdePublicKey() throws ApiException { downloadAdePublicKeyWithHttpInfo(); } /** * 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. * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Download public key * Allow -
* Connection -
* Content-Length -
* 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 -
*/ public ApiResponse downloadAdePublicKeyWithHttpInfo() throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("text/plain"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.downloadAdePublicKey", "/api/v1/integrations/apple/ade/public_key/", "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, null, false); } /** * Get ADE device * Get information about a specific Automated Device Enrollment device. * @param deviceId (required) * @return ListAdeDevices200ResponseResultsInner * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Get ADE device -
*/ public ListAdeDevices200ResponseResultsInner getAdeDevice(String deviceId) throws ApiException { return getAdeDeviceWithHttpInfo(deviceId).getData(); } /** * Get ADE device * Get information about a specific Automated Device Enrollment device. * @param deviceId (required) * @return ApiResponse<ListAdeDevices200ResponseResultsInner> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Get ADE device -
*/ public ApiResponse getAdeDeviceWithHttpInfo(String deviceId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling getAdeDevice"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/devices/{device_id}" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.getAdeDevice", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Get ADE integration * This request returns a specific ADE integration based on the `ade_token_id` passed. * @param adeTokenId (required) * @return GetAdeIntegration200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Get integration -
*/ public GetAdeIntegration200Response getAdeIntegration(String adeTokenId) throws ApiException { return getAdeIntegrationWithHttpInfo(adeTokenId).getData(); } /** * Get ADE integration * This request returns a specific ADE integration based on the `ade_token_id` passed. * @param adeTokenId (required) * @return ApiResponse<GetAdeIntegration200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Get integration -
*/ public ApiResponse getAdeIntegrationWithHttpInfo(String adeTokenId) throws ApiException { // Check required parameters if (adeTokenId == null) { throw new ApiException(400, "Missing the required parameter 'adeTokenId' when calling getAdeIntegration"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/{ade_token_id}" .replaceAll("\\{ade_token_id}", apiClient.escapeString(adeTokenId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.getAdeIntegration", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * List ADE devices * Get a list of Automated Device Enrollment devices. * @param blueprintId Return results \"containing\" the specified blueprint id (optional) * @param blueprint Return results \"containing\" the specified blueprint id (optional) * @param userId \"exact\" match on kandji user ID number (optional) * @param user \"exact\" match on kandji user ID number (optional) * @param depAccount The ADE token UUID (optional) * @param deviceFamily Mac, iPhone, iPad, AppleTV, iPod (optional) * @param model Return model results \"containing\" the specified model string. - \"iPad (8th Generation)\", \"MacBook Air\" (optional) * @param os OSX, iOS, tvOS (optional) * @param profileStatus The automated device enrollment profile assignment status - assigned, empty, pushed, removed (optional) * @param serialNumber 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) * @param page Use the `page` 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 `next` and `previous` key attributes in the response can be used to request the next page of results or return to the previous page. (optional) * @return ListAdeDevices200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 success -
400 Invalid UUID -
*/ public ListAdeDevices200Response listAdeDevices(String blueprintId, String blueprint, String userId, String user, String depAccount, String deviceFamily, String model, String os, String profileStatus, String serialNumber, String page) throws ApiException { return listAdeDevicesWithHttpInfo(blueprintId, blueprint, userId, user, depAccount, deviceFamily, model, os, profileStatus, serialNumber, page).getData(); } /** * List ADE devices * Get a list of Automated Device Enrollment devices. * @param blueprintId Return results \"containing\" the specified blueprint id (optional) * @param blueprint Return results \"containing\" the specified blueprint id (optional) * @param userId \"exact\" match on kandji user ID number (optional) * @param user \"exact\" match on kandji user ID number (optional) * @param depAccount The ADE token UUID (optional) * @param deviceFamily Mac, iPhone, iPad, AppleTV, iPod (optional) * @param model Return model results \"containing\" the specified model string. - \"iPad (8th Generation)\", \"MacBook Air\" (optional) * @param os OSX, iOS, tvOS (optional) * @param profileStatus The automated device enrollment profile assignment status - assigned, empty, pushed, removed (optional) * @param serialNumber 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) * @param page Use the `page` 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 `next` and `previous` key attributes in the response can be used to request the next page of results or return to the previous page. (optional) * @return ApiResponse<ListAdeDevices200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 success -
400 Invalid UUID -
*/ public ApiResponse listAdeDevicesWithHttpInfo(String blueprintId, String blueprint, String userId, String user, String depAccount, String deviceFamily, String model, String os, String profileStatus, String serialNumber, String page) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("", "blueprint_id", blueprintId) ); localVarQueryParams.addAll(apiClient.parameterToPairs("", "blueprint", blueprint)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "user_id", userId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "user", user)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "dep_account", depAccount)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "device_family", deviceFamily)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "model", model)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "os", os)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "profile_status", profileStatus)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "serial_number", serialNumber)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.listAdeDevices", "/api/v1/integrations/apple/ade/devices", "GET", localVarQueryParams, null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * List ADE integrations * This request returns a list of configured ADE integrations. * @return ListAdeIntegrations200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 List integrations -
*/ public ListAdeIntegrations200Response listAdeIntegrations() throws ApiException { return listAdeIntegrationsWithHttpInfo().getData(); } /** * List ADE integrations * This request returns a list of configured ADE integrations. * @return ApiResponse<ListAdeIntegrations200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 List integrations -
*/ public ApiResponse listAdeIntegrationsWithHttpInfo() throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.listAdeIntegrations", "/api/v1/integrations/apple/ade", "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * 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 into Kandji. When data is present within the mdm_device dictionary, you can reference the `device_id` as the ID of the enrolled device record. * @param adeTokenId (required) * @param page Use the `page` 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 `next` and `previous` key attributes in the response can be used to request the next page of results or return to the previous page. (optional) * @return ListDevicesAssociatedToAdeToken200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 List associated devices / List associated devices - null mdm_device * Allow -
* Connection -
* Content-Length -
* 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 -
*/ public ListDevicesAssociatedToAdeToken200Response listDevicesAssociatedToAdeToken(String adeTokenId, String page) throws ApiException { return listDevicesAssociatedToAdeTokenWithHttpInfo(adeTokenId, page).getData(); } /** * 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 into Kandji. When data is present within the mdm_device dictionary, you can reference the `device_id` as the ID of the enrolled device record. * @param adeTokenId (required) * @param page Use the `page` 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 `next` and `previous` key attributes in the response can be used to request the next page of results or return to the previous page. (optional) * @return ApiResponse<ListDevicesAssociatedToAdeToken200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 List associated devices / List associated devices - null mdm_device * Allow -
* Connection -
* Content-Length -
* 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 -
*/ public ApiResponse listDevicesAssociatedToAdeTokenWithHttpInfo(String adeTokenId, String page) throws ApiException { // Check required parameters if (adeTokenId == null) { throw new ApiException(400, "Missing the required parameter 'adeTokenId' when calling listDevicesAssociatedToAdeToken"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/{ade_token_id}/devices" .replaceAll("\\{ade_token_id}", apiClient.escapeString(adeTokenId.toString())); // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("", "page", page) ); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.listDevicesAssociatedToAdeToken", localVarPath, "GET", localVarQueryParams, null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * 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. * @param adeTokenId (required) * @param blueprintId (optional) * @param email (optional) * @param _file (optional) * @param phone (optional) * @return RenewAdeIntegration200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Renew integration -
*/ public RenewAdeIntegration200Response renewAdeIntegration(String adeTokenId, String blueprintId, String email, File _file, String phone) throws ApiException { return renewAdeIntegrationWithHttpInfo(adeTokenId, blueprintId, email, _file, phone).getData(); } /** * 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. * @param adeTokenId (required) * @param blueprintId (optional) * @param email (optional) * @param _file (optional) * @param phone (optional) * @return ApiResponse<RenewAdeIntegration200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Renew integration -
*/ public ApiResponse renewAdeIntegrationWithHttpInfo(String adeTokenId, String blueprintId, String email, File _file, String phone) throws ApiException { // Check required parameters if (adeTokenId == null) { throw new ApiException(400, "Missing the required parameter 'adeTokenId' when calling renewAdeIntegration"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/{ade_token_id}/renew" .replaceAll("\\{ade_token_id}", apiClient.escapeString(adeTokenId.toString())); // Form parameters Map localVarFormParams = new LinkedHashMap<>(); if (blueprintId != null) { localVarFormParams.put("blueprint_id", blueprintId); } if (email != null) { localVarFormParams.put("email", email); } if (_file != null) { localVarFormParams.put("file", _file); } if (phone != null) { localVarFormParams.put("phone", phone); } String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("multipart/form-data"); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.renewAdeIntegration", localVarPath, "POST", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Update ADE device * Update a specific Automated Device Enrollment device's blueprint assignment or asset tag. * @param deviceId (required) * @param updateAdeDeviceRequest (optional) * @return UpdateAdeDevice200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Update blueprint / Update asset tag -
*/ public UpdateAdeDevice200Response updateAdeDevice(String deviceId, UpdateAdeDeviceRequest updateAdeDeviceRequest) throws ApiException { return updateAdeDeviceWithHttpInfo(deviceId, updateAdeDeviceRequest).getData(); } /** * Update ADE device * Update a specific Automated Device Enrollment device's blueprint assignment or asset tag. * @param deviceId (required) * @param updateAdeDeviceRequest (optional) * @return ApiResponse<UpdateAdeDevice200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Update blueprint / Update asset tag -
*/ public ApiResponse updateAdeDeviceWithHttpInfo(String deviceId, UpdateAdeDeviceRequest updateAdeDeviceRequest) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling updateAdeDevice"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/devices/{device_id}" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.updateAdeDevice", localVarPath, "PATCH", new ArrayList<>(), updateAdeDeviceRequest, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * 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. * @param adeTokenId (required) * @param updateAdeIntegrationRequest (optional) * @return RenewAdeIntegration200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Update integration -
*/ public RenewAdeIntegration200Response updateAdeIntegration(String adeTokenId, UpdateAdeIntegrationRequest updateAdeIntegrationRequest) throws ApiException { return updateAdeIntegrationWithHttpInfo(adeTokenId, updateAdeIntegrationRequest).getData(); } /** * 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. * @param adeTokenId (required) * @param updateAdeIntegrationRequest (optional) * @return ApiResponse<RenewAdeIntegration200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Update integration -
*/ public ApiResponse updateAdeIntegrationWithHttpInfo(String adeTokenId, UpdateAdeIntegrationRequest updateAdeIntegrationRequest) throws ApiException { // Check required parameters if (adeTokenId == null) { throw new ApiException(400, "Missing the required parameter 'adeTokenId' when calling updateAdeIntegration"); } // Path parameters String localVarPath = "/api/v1/integrations/apple/ade/{ade_token_id}" .replaceAll("\\{ade_token_id}", apiClient.escapeString(adeTokenId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AutomatedDeviceEnrollmentIntegrationsApi.updateAdeIntegration", localVarPath, "PATCH", new ArrayList<>(), updateAdeIntegrationRequest, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy