Sha256: 60aa8c675d4dcbc3d32ec487b068bdae93866b228be2f04762005091834a74d6

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

---
title: ObjectsApi
---

## PureCloud::ObjectsApi

All URIs are relative to *https://api.mypurecloud.com*

Method | HTTP request | Description
------------- | ------------- | -------------
|[**get_objects_object_id**](ObjectsApi.html#get_objects_object_id) | **GET** /api/v2/authorization/objects/{objectId} | Returns a permission-protected object, showing the permission contexts it belongs to.|
{: class="table table-striped"}

<a name="get_objects_object_id"></a>

## -[**AuthzObject**](AuthzObject.html) get_objects_object_id(object_id)

Returns a permission-protected object, showing the permission contexts it belongs to.



### Example
~~~ruby
# load the gem
require 'purecloud'
# 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::ObjectsApi.new

object_id = "object_id_example" # String | Object ID


begin
  #Returns a permission-protected object, showing the permission contexts it belongs to.
  result = api_instance.get_objects_object_id(object_id)
  p result
rescue PureCloud::ApiError => e
  puts "Exception when calling ObjectsApi->get_objects_object_id: #{e}"
end
~~~

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **object_id** | **String**| Object ID | 
{: class="table table-striped"}


### Return type

[**AuthzObject**](AuthzObject.html)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
purecloud-0.38.1 doc_out/ObjectsApi.html.md