# SwaggerClient::PACApi All URIs are relative to *http://localhost:4010* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_system_pac**](PACApi.md#add_system_pac) | **POST** /api/systems/{systemId}/approval/pac | Submit system package for review [**get_system_pac**](PACApi.md#get_system_pac) | **GET** /api/systems/{systemId}/approval/pac | Get location of system package in PAC # **add_system_pac** > PacResponsePost add_system_pac(bodysystem_id) Submit system package for review Adds a Package Approval Chain (PAC) for given `systemId` path parameter ### Example ```ruby # load the gem require 'swagger_client' # setup authorization SwaggerClient.configure do |config| # Configure API key authorization: apikey config.api_key['api-key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['api-key'] = 'Bearer' # Configure API key authorization: mockType config.api_key['Prefer'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Prefer'] = 'Bearer' # Configure API key authorization: userid config.api_key['user-uid'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['user-uid'] = 'Bearer' end api_instance = SwaggerClient::PACApi.new body = SwaggerClient::PacRequestPostBody.new # PacRequestPostBody | Update an existing Artifact by Id system_id = 56 # Integer | **System Id**: The unique system record identifier. begin #Submit system package for review result = api_instance.add_system_pac(bodysystem_id) p result rescue SwaggerClient::ApiError => e puts "Exception when calling PACApi->add_system_pac: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**PacRequestPostBody**](PacRequestPostBody.md)| Update an existing Artifact by Id | **system_id** | **Integer**| **System Id**: The unique system record identifier. | ### Return type [**PacResponsePost**](PacResponsePost.md) ### Authorization [apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **get_system_pac** > PacResponseGet get_system_pac(system_id) Get location of system package in PAC Returns the location of a system's package in the Package Approval Chain (PAC) for matching `systemId` path parameter ### Example ```ruby # load the gem require 'swagger_client' # setup authorization SwaggerClient.configure do |config| # Configure API key authorization: apikey config.api_key['api-key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['api-key'] = 'Bearer' # Configure API key authorization: mockType config.api_key['Prefer'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Prefer'] = 'Bearer' # Configure API key authorization: userid config.api_key['user-uid'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['user-uid'] = 'Bearer' end api_instance = SwaggerClient::PACApi.new system_id = 56 # Integer | **System Id**: The unique system record identifier. begin #Get location of system package in PAC result = api_instance.get_system_pac(system_id) p result rescue SwaggerClient::ApiError => e puts "Exception when calling PACApi->get_system_pac: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **system_id** | **Integer**| **System Id**: The unique system record identifier. | ### Return type [**PacResponseGet**](PacResponseGet.md) ### Authorization [apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json