Class ScriptsApi

java.lang.Object
com.mypurecloud.sdk.v2.api.ScriptsApi

public class ScriptsApi extends Object
  • Constructor Details

    • ScriptsApi

      public ScriptsApi()
    • ScriptsApi

      public ScriptsApi(ApiClient apiClient)
  • Method Details

    • getScript

      public Script getScript(String scriptId) throws IOException, ApiException
      Get a script
      Parameters:
      scriptId - Script ID (required)
      Returns:
      Script
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptWithHttpInfo

      public ApiResponse<Script> getScriptWithHttpInfo(String scriptId) throws IOException
      Get a script
      Parameters:
      scriptId - Script ID (required)
      Returns:
      Script
      Throws:
      IOException - if the request fails to be processed
    • getScript

      public Script getScript(GetScriptRequest request) throws IOException, ApiException
      Get a script
      Parameters:
      request - The request object
      Returns:
      Script
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScript

      public ApiResponse<Script> getScript(ApiRequest<Void> request) throws IOException
      Get a script
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptPage

      public Page getScriptPage(String scriptId, String pageId, String scriptDataVersion) throws IOException, ApiException
      Get a page
      Parameters:
      scriptId - Script ID (required)
      pageId - Page ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Page
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptPageWithHttpInfo

      public ApiResponse<Page> getScriptPageWithHttpInfo(String scriptId, String pageId, String scriptDataVersion) throws IOException
      Get a page
      Parameters:
      scriptId - Script ID (required)
      pageId - Page ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Page
      Throws:
      IOException - if the request fails to be processed
    • getScriptPage

      public Page getScriptPage(GetScriptPageRequest request) throws IOException, ApiException
      Get a page
      Parameters:
      request - The request object
      Returns:
      Page
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptPage

      public ApiResponse<Page> getScriptPage(ApiRequest<Void> request) throws IOException
      Get a page
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptPages

      public List<Page> getScriptPages(String scriptId, String scriptDataVersion) throws IOException, ApiException
      Get the list of pages
      Parameters:
      scriptId - Script ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      List
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptPagesWithHttpInfo

      public ApiResponse<List<Page>> getScriptPagesWithHttpInfo(String scriptId, String scriptDataVersion) throws IOException
      Get the list of pages
      Parameters:
      scriptId - Script ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      List
      Throws:
      IOException - if the request fails to be processed
    • getScriptPages

      public List<Page> getScriptPages(GetScriptPagesRequest request) throws IOException, ApiException
      Get the list of pages
      Parameters:
      request - The request object
      Returns:
      List
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptPages

      public ApiResponse<List<Page>> getScriptPages(ApiRequest<Void> request) throws IOException
      Get the list of pages
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScripts

      public ScriptEntityListing getScripts(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException, ApiException
      Get the list of scripts
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      sortBy - SortBy (optional)
      sortOrder - SortOrder (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsWithHttpInfo

      public ApiResponse<ScriptEntityListing> getScriptsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException
      Get the list of scripts
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      sortBy - SortBy (optional)
      sortOrder - SortOrder (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      IOException - if the request fails to be processed
    • getScripts

      public ScriptEntityListing getScripts(GetScriptsRequest request) throws IOException, ApiException
      Get the list of scripts
      Parameters:
      request - The request object
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScripts

      public ApiResponse<ScriptEntityListing> getScripts(ApiRequest<Void> request) throws IOException
      Get the list of scripts
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsDivisionviews

      public ScriptEntityListing getScriptsDivisionviews(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException, ApiException
      Get the metadata for a list of scripts
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      sortBy - SortBy (optional)
      sortOrder - SortOrder (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsDivisionviewsWithHttpInfo

      public ApiResponse<ScriptEntityListing> getScriptsDivisionviewsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException
      Get the metadata for a list of scripts
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      sortBy - SortBy (optional)
      sortOrder - SortOrder (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      IOException - if the request fails to be processed
    • getScriptsDivisionviews

      public ScriptEntityListing getScriptsDivisionviews(GetScriptsDivisionviewsRequest request) throws IOException, ApiException
      Get the metadata for a list of scripts
      Parameters:
      request - The request object
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsDivisionviews

      public ApiResponse<ScriptEntityListing> getScriptsDivisionviews(ApiRequest<Void> request) throws IOException
      Get the metadata for a list of scripts
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublished

      public ScriptEntityListing getScriptsPublished(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException, ApiException
      Get the published scripts.
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedWithHttpInfo

      public ApiResponse<ScriptEntityListing> getScriptsPublishedWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException
      Get the published scripts.
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublished

      public ScriptEntityListing getScriptsPublished(GetScriptsPublishedRequest request) throws IOException, ApiException
      Get the published scripts.
      Parameters:
      request - The request object
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublished

      public ApiResponse<ScriptEntityListing> getScriptsPublished(ApiRequest<Void> request) throws IOException
      Get the published scripts.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviewVariables

      public Object getScriptsPublishedDivisionviewVariables(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException, ApiException
      Get the published variables
      Parameters:
      scriptId - Script ID (required)
      input - input (optional)
      output - output (optional)
      type - type (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Object
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviewVariablesWithHttpInfo

      public ApiResponse<Object> getScriptsPublishedDivisionviewVariablesWithHttpInfo(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException
      Get the published variables
      Parameters:
      scriptId - Script ID (required)
      input - input (optional)
      output - output (optional)
      type - type (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Object
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviewVariables

      public Object getScriptsPublishedDivisionviewVariables(GetScriptsPublishedDivisionviewVariablesRequest request) throws IOException, ApiException
      Get the published variables
      Parameters:
      request - The request object
      Returns:
      Object
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviewVariables

      public ApiResponse<Object> getScriptsPublishedDivisionviewVariables(ApiRequest<Void> request) throws IOException
      Get the published variables
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviews

      public ScriptEntityListing getScriptsPublishedDivisionviews(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException, ApiException
      Get the published scripts metadata.
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviewsWithHttpInfo

      public ApiResponse<ScriptEntityListing> getScriptsPublishedDivisionviewsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException
      Get the published scripts metadata.
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      expand - Expand (optional)
      name - Name filter (optional)
      feature - Feature filter (optional)
      flowId - Secure flow id filter (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      divisionIds - Filters scripts to requested divisionIds (optional)
      Returns:
      ScriptEntityListing
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviews

      public ScriptEntityListing getScriptsPublishedDivisionviews(GetScriptsPublishedDivisionviewsRequest request) throws IOException, ApiException
      Get the published scripts metadata.
      Parameters:
      request - The request object
      Returns:
      ScriptEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedDivisionviews

      public ApiResponse<ScriptEntityListing> getScriptsPublishedDivisionviews(ApiRequest<Void> request) throws IOException
      Get the published scripts metadata.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptId

      public Script getScriptsPublishedScriptId(String scriptId, String scriptDataVersion) throws IOException, ApiException
      Get the published script.
      Parameters:
      scriptId - Script ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Script
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdWithHttpInfo

      public ApiResponse<Script> getScriptsPublishedScriptIdWithHttpInfo(String scriptId, String scriptDataVersion) throws IOException
      Get the published script.
      Parameters:
      scriptId - Script ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Script
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptId

      public Script getScriptsPublishedScriptId(GetScriptsPublishedScriptIdRequest request) throws IOException, ApiException
      Get the published script.
      Parameters:
      request - The request object
      Returns:
      Script
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptId

      public ApiResponse<Script> getScriptsPublishedScriptId(ApiRequest<Void> request) throws IOException
      Get the published script.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPage

      public Page getScriptsPublishedScriptIdPage(String scriptId, String pageId, String scriptDataVersion) throws IOException, ApiException
      Get the published page.
      Parameters:
      scriptId - Script ID (required)
      pageId - Page ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Page
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPageWithHttpInfo

      public ApiResponse<Page> getScriptsPublishedScriptIdPageWithHttpInfo(String scriptId, String pageId, String scriptDataVersion) throws IOException
      Get the published page.
      Parameters:
      scriptId - Script ID (required)
      pageId - Page ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Page
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPage

      public Page getScriptsPublishedScriptIdPage(GetScriptsPublishedScriptIdPageRequest request) throws IOException, ApiException
      Get the published page.
      Parameters:
      request - The request object
      Returns:
      Page
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPage

      public ApiResponse<Page> getScriptsPublishedScriptIdPage(ApiRequest<Void> request) throws IOException
      Get the published page.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPages

      public List<Page> getScriptsPublishedScriptIdPages(String scriptId, String scriptDataVersion) throws IOException, ApiException
      Get the list of published pages
      Parameters:
      scriptId - Script ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      List
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPagesWithHttpInfo

      public ApiResponse<List<Page>> getScriptsPublishedScriptIdPagesWithHttpInfo(String scriptId, String scriptDataVersion) throws IOException
      Get the list of published pages
      Parameters:
      scriptId - Script ID (required)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      List
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPages

      public List<Page> getScriptsPublishedScriptIdPages(GetScriptsPublishedScriptIdPagesRequest request) throws IOException, ApiException
      Get the list of published pages
      Parameters:
      request - The request object
      Returns:
      List
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdPages

      public ApiResponse<List<Page>> getScriptsPublishedScriptIdPages(ApiRequest<Void> request) throws IOException
      Get the list of published pages
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdVariables

      public Object getScriptsPublishedScriptIdVariables(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException, ApiException
      Get the published variables
      Parameters:
      scriptId - Script ID (required)
      input - input (optional)
      output - output (optional)
      type - type (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Object
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdVariablesWithHttpInfo

      public ApiResponse<Object> getScriptsPublishedScriptIdVariablesWithHttpInfo(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException
      Get the published variables
      Parameters:
      scriptId - Script ID (required)
      input - input (optional)
      output - output (optional)
      type - type (optional)
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      Returns:
      Object
      Throws:
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdVariables

      public Object getScriptsPublishedScriptIdVariables(GetScriptsPublishedScriptIdVariablesRequest request) throws IOException, ApiException
      Get the published variables
      Parameters:
      request - The request object
      Returns:
      Object
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsPublishedScriptIdVariables

      public ApiResponse<Object> getScriptsPublishedScriptIdVariables(ApiRequest<Void> request) throws IOException
      Get the published variables
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getScriptsUploadStatus

      public ImportScriptStatusResponse getScriptsUploadStatus(String uploadId, Boolean longPoll) throws IOException, ApiException
      Get the upload status of an imported script
      Parameters:
      uploadId - Upload ID (required)
      longPoll - Enable longPolling endpoint (optional, default to false)
      Returns:
      ImportScriptStatusResponse
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsUploadStatusWithHttpInfo

      public ApiResponse<ImportScriptStatusResponse> getScriptsUploadStatusWithHttpInfo(String uploadId, Boolean longPoll) throws IOException
      Get the upload status of an imported script
      Parameters:
      uploadId - Upload ID (required)
      longPoll - Enable longPolling endpoint (optional, default to false)
      Returns:
      ImportScriptStatusResponse
      Throws:
      IOException - if the request fails to be processed
    • getScriptsUploadStatus

      public ImportScriptStatusResponse getScriptsUploadStatus(GetScriptsUploadStatusRequest request) throws IOException, ApiException
      Get the upload status of an imported script
      Parameters:
      request - The request object
      Returns:
      ImportScriptStatusResponse
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getScriptsUploadStatus

      public ApiResponse<ImportScriptStatusResponse> getScriptsUploadStatus(ApiRequest<Void> request) throws IOException
      Get the upload status of an imported script
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • postScriptExport

      public ExportScriptResponse postScriptExport(String scriptId, ExportScriptRequest body) throws IOException, ApiException
      Export a script via download service.
      Parameters:
      scriptId - Script ID (required)
      body - (optional)
      Returns:
      ExportScriptResponse
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postScriptExportWithHttpInfo

      public ApiResponse<ExportScriptResponse> postScriptExportWithHttpInfo(String scriptId, ExportScriptRequest body) throws IOException
      Export a script via download service.
      Parameters:
      scriptId - Script ID (required)
      body - (optional)
      Returns:
      ExportScriptResponse
      Throws:
      IOException - if the request fails to be processed
    • postScriptExport

      public ExportScriptResponse postScriptExport(PostScriptExportRequest request) throws IOException, ApiException
      Export a script via download service.
      Parameters:
      request - The request object
      Returns:
      ExportScriptResponse
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postScriptExport

      public ApiResponse<ExportScriptResponse> postScriptExport(ApiRequest<ExportScriptRequest> request) throws IOException
      Export a script via download service.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • postScriptsPublished

      public Script postScriptsPublished(String scriptDataVersion, PublishScriptRequestData body) throws IOException, ApiException
      Publish a script.
      Parameters:
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      body - body (optional)
      Returns:
      Script
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postScriptsPublishedWithHttpInfo

      public ApiResponse<Script> postScriptsPublishedWithHttpInfo(String scriptDataVersion, PublishScriptRequestData body) throws IOException
      Publish a script.
      Parameters:
      scriptDataVersion - Advanced usage - controls the data version of the script (optional)
      body - body (optional)
      Returns:
      Script
      Throws:
      IOException - if the request fails to be processed
    • postScriptsPublished

      public Script postScriptsPublished(PostScriptsPublishedRequest request) throws IOException, ApiException
      Publish a script.
      Parameters:
      request - The request object
      Returns:
      Script
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postScriptsPublished

      public ApiResponse<Script> postScriptsPublished(ApiRequest<PublishScriptRequestData> request) throws IOException
      Publish a script.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed