Sha256: 627fa5ffa885055a7743e0d84a0bdb3a3fe158d20a58ad89f30b941dfee4501c

Contents?: true

Size: 1.75 KB

Versions: 11

Compression:

Stored size: 1.75 KB

Contents

---
title: UploadsApi
---

## PureCloud::UploadsApi

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

Method | Description
------------- | ------------- | -------------
[**post_uploads_publicassets_images**](UploadsApi.html#post_uploads_publicassets_images) | Creates presigned url for uploading a public asset image
{: class="table table-striped"}

<a name="post_uploads_publicassets_images"></a>

## [**UploadUrlResponse**](UploadUrlResponse.html) post_uploads_publicassets_images(body)



Creates presigned url for uploading a public asset image



Wraps POST /api/v2/uploads/publicassets/images 

Requires ALL permissions: 

* uploads:publicasset:upload


### Example
```{"language":"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::UploadsApi.new

body = PureCloud::UploadUrlRequest.new # UploadUrlRequest | query


begin
  #Creates presigned url for uploading a public asset image
  result = api_instance.post_uploads_publicassets_images(body)
  p result
rescue PureCloud::ApiError => e
  puts "Exception when calling UploadsApi->post_uploads_publicassets_images: #{e}"
end
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**UploadUrlRequest**](UploadUrlRequest.html)| query |  |
{: class="table table-striped"}


### Return type

[**UploadUrlResponse**](UploadUrlResponse.html)

### HTTP request headers

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



Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
purecloudplatformclientv2-96.0.0 docs/UploadsApi.md
purecloudplatformclientv2-95.0.0 docs/UploadsApi.md
purecloudplatformclientv2-94.0.0 docs/UploadsApi.md
purecloudplatformclientv2-93.0.0 docs/UploadsApi.md
purecloudplatformclientv2-92.0.0 docs/UploadsApi.md
purecloudplatformclientv2-91.0.0 docs/UploadsApi.md
purecloudplatformclientv2-90.0.0 docs/UploadsApi.md
purecloudplatformclientv2-89.0.0 docs/UploadsApi.md
purecloudplatformclientv2-88.0.0 docs/UploadsApi.md
purecloudplatformclientv2-87.0.0 docs/UploadsApi.md
purecloudplatformclientv2-86.0.0 docs/UploadsApi.md