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

com.mypurecloud.sdk.api.ArchitectApi Maven / Gradle / Ivy

package com.mypurecloud.sdk.api;

import com.fasterxml.jackson.core.type.TypeReference;

import com.mypurecloud.sdk.ApiException;
import com.mypurecloud.sdk.ApiClient;
import com.mypurecloud.sdk.ApiResponse;
import com.mypurecloud.sdk.Configuration;
import com.mypurecloud.sdk.model.*;
import com.mypurecloud.sdk.Pair;

import com.mypurecloud.sdk.model.ErrorBody;
import com.mypurecloud.sdk.model.Operation;
import com.mypurecloud.sdk.model.FlowEntityListing;
import com.mypurecloud.sdk.model.PromptEntityListing;
import com.mypurecloud.sdk.model.Prompt;
import com.mypurecloud.sdk.model.PromptAssetEntityListing;
import com.mypurecloud.sdk.model.PromptAsset;
import com.mypurecloud.sdk.model.SystemPromptEntityListing;
import com.mypurecloud.sdk.model.SystemPrompt;
import com.mypurecloud.sdk.model.SystemPromptAssetEntityListing;
import com.mypurecloud.sdk.model.SystemPromptAsset;
import com.mypurecloud.sdk.model.PromptAssetCreate;


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


public class ArchitectApi {
  private ApiClient pcapiClient;

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

  public ArchitectApi(ApiClient apiClient) {
    this.pcapiClient = apiClient;
  }

  public ApiClient getApiClient() {
    return pcapiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.pcapiClient = apiClient;
  }

  /**
   * Batch-delete a list of prompts asynchronously
   * Multiple IDs can be specified, in which case all specified prompts will be deleted.
   * @param id List of Prompt IDs (required)
   * @return Operation
   * @throws ApiException if fails to make API call
   */
  public Operation deletePrompts(List id) throws ApiException {
    return deletePromptsWithHttpInfo(id).getResponseObject();
  }

  /**
   * Batch-delete a list of prompts asynchronously
   * Multiple IDs can be specified, in which case all specified prompts will be deleted.
   * @param id List of Prompt IDs (required)
   * @return Operation
   * @throws ApiException if fails to make API call
   */
  public ApiResponse deletePromptsWithHttpInfo(List id) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'id' is set
    if (id == null) {
      throw new ApiException(400, "Missing the required parameter 'id' when calling deletePrompts");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts".replaceAll("\\{format\\}","json");

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("multi", "id", id));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Delete specified user prompt
   * 
   * @param promptId Prompt ID (required)
   * @param allResources Whether or not to delete all the prompt resources (optional)
   * @throws ApiException if fails to make API call
   */
  public void deletePromptsPromptId(String promptId, Boolean allResources) throws ApiException {
    deletePromptsPromptIdWithHttpInfo(promptId, allResources);
  }

  /**
   * Delete specified user prompt
   * 
   * @param promptId Prompt ID (required)
   * @param allResources Whether or not to delete all the prompt resources (optional)
   * @throws ApiException if fails to make API call
   */
  public ApiResponse deletePromptsPromptIdWithHttpInfo(String promptId, Boolean allResources) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling deletePromptsPromptId");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "allResources", allResources));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, null);
  }
  /**
   * Delete specified user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @throws ApiException if fails to make API call
   */
  public void deletePromptsPromptIdResourcesLanguagecode(String promptId, String languageCode) throws ApiException {
    deletePromptsPromptIdResourcesLanguagecodeWithHttpInfo(promptId, languageCode);
  }

  /**
   * Delete specified user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @throws ApiException if fails to make API call
   */
  public ApiResponse deletePromptsPromptIdResourcesLanguagecodeWithHttpInfo(String promptId, String languageCode) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling deletePromptsPromptIdResourcesLanguagecode");
    }
    
    // verify the required parameter 'languageCode' is set
    if (languageCode == null) {
      throw new ApiException(400, "Missing the required parameter 'languageCode' when calling deletePromptsPromptIdResourcesLanguagecode");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()))
      .replaceAll("\\{" + "languageCode" + "\\}", pcapiClient.escapeString(languageCode.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, null);
  }
  /**
   * Delete a system prompt resource override.
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @return String
   * @throws ApiException if fails to make API call
   */
  public String deleteSystempromptsPromptIdResourcesLanguagecode(String promptId, String languageCode) throws ApiException {
    return deleteSystempromptsPromptIdResourcesLanguagecodeWithHttpInfo(promptId, languageCode).getResponseObject();
  }

  /**
   * Delete a system prompt resource override.
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @return String
   * @throws ApiException if fails to make API call
   */
  public ApiResponse deleteSystempromptsPromptIdResourcesLanguagecodeWithHttpInfo(String promptId, String languageCode) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling deleteSystempromptsPromptIdResourcesLanguagecode");
    }
    
    // verify the required parameter 'languageCode' is set
    if (languageCode == null) {
      throw new ApiException(400, "Missing the required parameter 'languageCode' when calling deleteSystempromptsPromptIdResourcesLanguagecode");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()))
      .replaceAll("\\{" + "languageCode" + "\\}", pcapiClient.escapeString(languageCode.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get a pageable list of flows, filtered by query parameters
   * Multiple IDs can be specified, in which case all matching flows will be returned, and no other parameters will be evaluated.
   * @param type Type (required)
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param sortBy Sort by (optional, default to id)
   * @param sortOrder Sort order (optional, default to asc)
   * @param id ID (optional)
   * @param name Name (optional)
   * @param description Description (optional)
   * @param nameOrDescription Name or description (optional)
   * @param publishVersionId Publish version ID (optional)
   * @param editableBy Editable by (optional)
   * @param lockedBy Locked by (optional)
   * @param secure Secure (optional)
   * @param deleted Include deleted (optional, default to false)
   * @param includeSchemas Include variable schemas (optional, default to false)
   * @return FlowEntityListing
   * @throws ApiException if fails to make API call
   */
  public FlowEntityListing getFlows(String type, Integer pageNumber, Integer pageSize, String sortBy, String sortOrder, List id, String name, String description, String nameOrDescription, String publishVersionId, String editableBy, String lockedBy, String secure, Boolean deleted, Boolean includeSchemas) throws ApiException {
    return getFlowsWithHttpInfo(type, pageNumber, pageSize, sortBy, sortOrder, id, name, description, nameOrDescription, publishVersionId, editableBy, lockedBy, secure, deleted, includeSchemas).getResponseObject();
  }

  /**
   * Get a pageable list of flows, filtered by query parameters
   * Multiple IDs can be specified, in which case all matching flows will be returned, and no other parameters will be evaluated.
   * @param type Type (required)
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param sortBy Sort by (optional, default to id)
   * @param sortOrder Sort order (optional, default to asc)
   * @param id ID (optional)
   * @param name Name (optional)
   * @param description Description (optional)
   * @param nameOrDescription Name or description (optional)
   * @param publishVersionId Publish version ID (optional)
   * @param editableBy Editable by (optional)
   * @param lockedBy Locked by (optional)
   * @param secure Secure (optional)
   * @param deleted Include deleted (optional, default to false)
   * @param includeSchemas Include variable schemas (optional, default to false)
   * @return FlowEntityListing
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getFlowsWithHttpInfo(String type, Integer pageNumber, Integer pageSize, String sortBy, String sortOrder, List id, String name, String description, String nameOrDescription, String publishVersionId, String editableBy, String lockedBy, String secure, Boolean deleted, Boolean includeSchemas) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'type' is set
    if (type == null) {
      throw new ApiException(400, "Missing the required parameter 'type' when calling getFlows");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/flows".replaceAll("\\{format\\}","json");

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "type", type));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "sortBy", sortBy));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "sortOrder", sortOrder));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("multi", "id", id));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "name", name));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "description", description));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "nameOrDescription", nameOrDescription));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "publishVersionId", publishVersionId));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "editableBy", editableBy));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "lockedBy", lockedBy));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "secure", secure));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "deleted", deleted));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "includeSchemas", includeSchemas));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get a pageable list of user prompts
   * The returned list is pageable, and query parameters can be used for filtering.  Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated.
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param name Name (optional)
   * @param description Description (optional)
   * @param nameOrDescription Name or description (optional)
   * @return PromptEntityListing
   * @throws ApiException if fails to make API call
   */
  public PromptEntityListing getPrompts(Integer pageNumber, Integer pageSize, String name, String description, String nameOrDescription) throws ApiException {
    return getPromptsWithHttpInfo(pageNumber, pageSize, name, description, nameOrDescription).getResponseObject();
  }

  /**
   * Get a pageable list of user prompts
   * The returned list is pageable, and query parameters can be used for filtering.  Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated.
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param name Name (optional)
   * @param description Description (optional)
   * @param nameOrDescription Name or description (optional)
   * @return PromptEntityListing
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getPromptsWithHttpInfo(Integer pageNumber, Integer pageSize, String name, String description, String nameOrDescription) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts".replaceAll("\\{format\\}","json");

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "name", name));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "description", description));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "nameOrDescription", nameOrDescription));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get specified user prompt
   * 
   * @param promptId Prompt ID (required)
   * @return Prompt
   * @throws ApiException if fails to make API call
   */
  public Prompt getPromptsPromptId(String promptId) throws ApiException {
    return getPromptsPromptIdWithHttpInfo(promptId).getResponseObject();
  }

  /**
   * Get specified user prompt
   * 
   * @param promptId Prompt ID (required)
   * @return Prompt
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getPromptsPromptIdWithHttpInfo(String promptId) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling getPromptsPromptId");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get a pageable list of user prompt resources
   * The returned list is pageable, and query parameters can be used for filtering.
   * @param promptId Prompt ID (required)
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @return PromptAssetEntityListing
   * @throws ApiException if fails to make API call
   */
  public PromptAssetEntityListing getPromptsPromptIdResources(String promptId, Integer pageNumber, Integer pageSize) throws ApiException {
    return getPromptsPromptIdResourcesWithHttpInfo(promptId, pageNumber, pageSize).getResponseObject();
  }

  /**
   * Get a pageable list of user prompt resources
   * The returned list is pageable, and query parameters can be used for filtering.
   * @param promptId Prompt ID (required)
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @return PromptAssetEntityListing
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getPromptsPromptIdResourcesWithHttpInfo(String promptId, Integer pageNumber, Integer pageSize) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling getPromptsPromptIdResources");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}/resources".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get specified user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @return PromptAsset
   * @throws ApiException if fails to make API call
   */
  public PromptAsset getPromptsPromptIdResourcesLanguagecode(String promptId, String languageCode) throws ApiException {
    return getPromptsPromptIdResourcesLanguagecodeWithHttpInfo(promptId, languageCode).getResponseObject();
  }

  /**
   * Get specified user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @return PromptAsset
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getPromptsPromptIdResourcesLanguagecodeWithHttpInfo(String promptId, String languageCode) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling getPromptsPromptIdResourcesLanguagecode");
    }
    
    // verify the required parameter 'languageCode' is set
    if (languageCode == null) {
      throw new ApiException(400, "Missing the required parameter 'languageCode' when calling getPromptsPromptIdResourcesLanguagecode");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()))
      .replaceAll("\\{" + "languageCode" + "\\}", pcapiClient.escapeString(languageCode.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get System Prompts
   * 
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param sortBy Sort by (optional, default to id)
   * @param sortOrder Sort order (optional, default to asc)
   * @param name Name (optional)
   * @param description Description (optional)
   * @param nameOrDescription Name or description (optional)
   * @return SystemPromptEntityListing
   * @throws ApiException if fails to make API call
   */
  public SystemPromptEntityListing getSystemprompts(Integer pageNumber, Integer pageSize, String sortBy, String sortOrder, String name, String description, String nameOrDescription) throws ApiException {
    return getSystempromptsWithHttpInfo(pageNumber, pageSize, sortBy, sortOrder, name, description, nameOrDescription).getResponseObject();
  }

  /**
   * Get System Prompts
   * 
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param sortBy Sort by (optional, default to id)
   * @param sortOrder Sort order (optional, default to asc)
   * @param name Name (optional)
   * @param description Description (optional)
   * @param nameOrDescription Name or description (optional)
   * @return SystemPromptEntityListing
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getSystempromptsWithHttpInfo(Integer pageNumber, Integer pageSize, String sortBy, String sortOrder, String name, String description, String nameOrDescription) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts".replaceAll("\\{format\\}","json");

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "sortBy", sortBy));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "sortOrder", sortOrder));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "name", name));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "description", description));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "nameOrDescription", nameOrDescription));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get a system prompt
   * 
   * @param promptId promptId (required)
   * @return SystemPrompt
   * @throws ApiException if fails to make API call
   */
  public SystemPrompt getSystempromptsPromptId(String promptId) throws ApiException {
    return getSystempromptsPromptIdWithHttpInfo(promptId).getResponseObject();
  }

  /**
   * Get a system prompt
   * 
   * @param promptId promptId (required)
   * @return SystemPrompt
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getSystempromptsPromptIdWithHttpInfo(String promptId) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling getSystempromptsPromptId");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts/{promptId}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get IVR System Prompt resources.
   * 
   * @param promptId Prompt ID (required)
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param sortBy Sort by (optional, default to id)
   * @param sortOrder Sort order (optional, default to asc)
   * @return SystemPromptAssetEntityListing
   * @throws ApiException if fails to make API call
   */
  public SystemPromptAssetEntityListing getSystempromptsPromptIdResources(String promptId, Integer pageNumber, Integer pageSize, String sortBy, String sortOrder) throws ApiException {
    return getSystempromptsPromptIdResourcesWithHttpInfo(promptId, pageNumber, pageSize, sortBy, sortOrder).getResponseObject();
  }

  /**
   * Get IVR System Prompt resources.
   * 
   * @param promptId Prompt ID (required)
   * @param pageNumber Page number (optional, default to 1)
   * @param pageSize Page size (optional, default to 25)
   * @param sortBy Sort by (optional, default to id)
   * @param sortOrder Sort order (optional, default to asc)
   * @return SystemPromptAssetEntityListing
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getSystempromptsPromptIdResourcesWithHttpInfo(String promptId, Integer pageNumber, Integer pageSize, String sortBy, String sortOrder) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling getSystempromptsPromptIdResources");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts/{promptId}/resources".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();

    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "sortBy", sortBy));
    pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "sortOrder", sortOrder));

    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Get a system prompt resource.
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @return SystemPromptAsset
   * @throws ApiException if fails to make API call
   */
  public SystemPromptAsset getSystempromptsPromptIdResourcesLanguagecode(String promptId, String languageCode) throws ApiException {
    return getSystempromptsPromptIdResourcesLanguagecodeWithHttpInfo(promptId, languageCode).getResponseObject();
  }

  /**
   * Get a system prompt resource.
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @return SystemPromptAsset
   * @throws ApiException if fails to make API call
   */
  public ApiResponse getSystempromptsPromptIdResourcesLanguagecodeWithHttpInfo(String promptId, String languageCode) throws ApiException {
    Object pclocalVarPostBody = null;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling getSystempromptsPromptIdResourcesLanguagecode");
    }
    
    // verify the required parameter 'languageCode' is set
    if (languageCode == null) {
      throw new ApiException(400, "Missing the required parameter 'languageCode' when calling getSystempromptsPromptIdResourcesLanguagecode");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()))
      .replaceAll("\\{" + "languageCode" + "\\}", pcapiClient.escapeString(languageCode.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Create a new user prompt
   * 
   * @param body  (optional)
   * @return Prompt
   * @throws ApiException if fails to make API call
   */
  public Prompt postPrompts(Prompt body) throws ApiException {
    return postPromptsWithHttpInfo(body).getResponseObject();
  }

  /**
   * Create a new user prompt
   * 
   * @param body  (optional)
   * @return Prompt
   * @throws ApiException if fails to make API call
   */
  public ApiResponse postPromptsWithHttpInfo(Prompt body) throws ApiException {
    Object pclocalVarPostBody = body;
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts".replaceAll("\\{format\\}","json");

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Create a new user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param body  (optional)
   * @return PromptAsset
   * @throws ApiException if fails to make API call
   */
  public PromptAsset postPromptsPromptIdResources(String promptId, PromptAssetCreate body) throws ApiException {
    return postPromptsPromptIdResourcesWithHttpInfo(promptId, body).getResponseObject();
  }

  /**
   * Create a new user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param body  (optional)
   * @return PromptAsset
   * @throws ApiException if fails to make API call
   */
  public ApiResponse postPromptsPromptIdResourcesWithHttpInfo(String promptId, PromptAssetCreate body) throws ApiException {
    Object pclocalVarPostBody = body;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling postPromptsPromptIdResources");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}/resources".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Create system prompt resource override.
   * 
   * @param promptId Prompt ID (required)
   * @param body  (optional)
   * @return SystemPromptAsset
   * @throws ApiException if fails to make API call
   */
  public SystemPromptAsset postSystempromptsPromptIdResources(String promptId, SystemPromptAsset body) throws ApiException {
    return postSystempromptsPromptIdResourcesWithHttpInfo(promptId, body).getResponseObject();
  }

  /**
   * Create system prompt resource override.
   * 
   * @param promptId Prompt ID (required)
   * @param body  (optional)
   * @return SystemPromptAsset
   * @throws ApiException if fails to make API call
   */
  public ApiResponse postSystempromptsPromptIdResourcesWithHttpInfo(String promptId, SystemPromptAsset body) throws ApiException {
    Object pclocalVarPostBody = body;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling postSystempromptsPromptIdResources");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts/{promptId}/resources".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Update specified user prompt
   * 
   * @param promptId Prompt ID (required)
   * @param body  (optional)
   * @return Prompt
   * @throws ApiException if fails to make API call
   */
  public Prompt putPromptsPromptId(String promptId, Prompt body) throws ApiException {
    return putPromptsPromptIdWithHttpInfo(promptId, body).getResponseObject();
  }

  /**
   * Update specified user prompt
   * 
   * @param promptId Prompt ID (required)
   * @param body  (optional)
   * @return Prompt
   * @throws ApiException if fails to make API call
   */
  public ApiResponse putPromptsPromptIdWithHttpInfo(String promptId, Prompt body) throws ApiException {
    Object pclocalVarPostBody = body;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling putPromptsPromptId");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Update specified user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @param body  (optional)
   * @return PromptAsset
   * @throws ApiException if fails to make API call
   */
  public PromptAsset putPromptsPromptIdResourcesLanguagecode(String promptId, String languageCode, PromptAsset body) throws ApiException {
    return putPromptsPromptIdResourcesLanguagecodeWithHttpInfo(promptId, languageCode, body).getResponseObject();
  }

  /**
   * Update specified user prompt resource
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @param body  (optional)
   * @return PromptAsset
   * @throws ApiException if fails to make API call
   */
  public ApiResponse putPromptsPromptIdResourcesLanguagecodeWithHttpInfo(String promptId, String languageCode, PromptAsset body) throws ApiException {
    Object pclocalVarPostBody = body;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling putPromptsPromptIdResourcesLanguagecode");
    }
    
    // verify the required parameter 'languageCode' is set
    if (languageCode == null) {
      throw new ApiException(400, "Missing the required parameter 'languageCode' when calling putPromptsPromptIdResourcesLanguagecode");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()))
      .replaceAll("\\{" + "languageCode" + "\\}", pcapiClient.escapeString(languageCode.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
  /**
   * Updates a system prompt resource override.
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @param body  (optional)
   * @return SystemPromptAsset
   * @throws ApiException if fails to make API call
   */
  public SystemPromptAsset putSystempromptsPromptIdResourcesLanguagecode(String promptId, String languageCode, SystemPromptAsset body) throws ApiException {
    return putSystempromptsPromptIdResourcesLanguagecodeWithHttpInfo(promptId, languageCode, body).getResponseObject();
  }

  /**
   * Updates a system prompt resource override.
   * 
   * @param promptId Prompt ID (required)
   * @param languageCode Language (required)
   * @param body  (optional)
   * @return SystemPromptAsset
   * @throws ApiException if fails to make API call
   */
  public ApiResponse putSystempromptsPromptIdResourcesLanguagecodeWithHttpInfo(String promptId, String languageCode, SystemPromptAsset body) throws ApiException {
    Object pclocalVarPostBody = body;
    
    // verify the required parameter 'promptId' is set
    if (promptId == null) {
      throw new ApiException(400, "Missing the required parameter 'promptId' when calling putSystempromptsPromptIdResourcesLanguagecode");
    }
    
    // verify the required parameter 'languageCode' is set
    if (languageCode == null) {
      throw new ApiException(400, "Missing the required parameter 'languageCode' when calling putSystempromptsPromptIdResourcesLanguagecode");
    }
    
    // create path and map variables
    String pclocalVarPath = "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "promptId" + "\\}", pcapiClient.escapeString(promptId.toString()))
      .replaceAll("\\{" + "languageCode" + "\\}", pcapiClient.escapeString(languageCode.toString()));

    // query params
    List pclocalVarQueryParams = new ArrayList();
    Map pclocalVarHeaderParams = new HashMap();
    Map pclocalVarFormParams = new HashMap();


    
    
    final String[] pclocalVarAccepts = {
      "application/json"
    };
    final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);

    final String[] pclocalVarContentTypes = {
      "application/json"
    };
    final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);

    String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };

    return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy