docs/UtilitiesApi.md in purecloudplatformclientv2-47.0.0 vs docs/UtilitiesApi.md in purecloudplatformclientv2-48.0.0
- old
+ new
@@ -9,10 +9,11 @@
Method | Description
------------- | ------------- | -------------
[**get_date**](UtilitiesApi.html#get_date) | Get the current system date/time
[**get_timezones**](UtilitiesApi.html#get_timezones) | Get time zones list
[**post_certificate_details**](UtilitiesApi.html#post_certificate_details) | Returns the information about an X509 PEM encoded certificate or certificate chain.
+[**post_gmsc_tokens**](UtilitiesApi.html#post_gmsc_tokens) | Generate a JWT for use with common cloud.
{: class="table table-striped"}
<a name="get_date"></a>
## -[**ServerDate**](ServerDate.html) get_date
@@ -192,9 +193,67 @@
### Return type
[**ParsedCertificate**](ParsedCertificate.html)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+
+<a name="post_gmsc_tokens"></a>
+
+## -[**Token**](Token.html) post_gmsc_tokens
+
+
+
+Generate a JWT for use with common cloud.
+
+
+
+Wraps POST /api/v2/gmsc/tokens
+
+Requires NO permissions:
+
+
+
+### Example
+~~~ruby
+# load the gem
+require 'purecloudplatformclientv2'
+# setup authorization
+@secret = ENV['PURECLOUD_SECRET']
+@id = ENV['PURECLOUD_CLIENT_ID']
+environment = "mypurecloud.com"
+
+@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
+
+PureCloud.configure do |config|
+ config.access_token = @authToken
+end
+
+api_instance = PureCloud::UtilitiesApi.new
+
+begin
+ #Generate a JWT for use with common cloud.
+ result = api_instance.post_gmsc_tokens
+ p result
+rescue PureCloud::ApiError => e
+ puts "Exception when calling UtilitiesApi->post_gmsc_tokens: #{e}"
+end
+~~~
+
+### Parameters
+This endpoint does not need any parameter.
+{: class="table table-striped"}
+
+
+### Return type
+
+[**Token**](Token.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json