Skip to main content

Uniphore Customer Portal

Create Media Storage Properties for a Tenant

Adds cloud storage properties for a tenant where the media files used by the connectors are stored. Currently you can add AWS S3 bucket properties where the media files are stored. You can also use this API to update the storage properties.

Endpoint

Method: POST

URL: https://tenant namespace url/cse/media/{tenantId}/properties

curl -X PUT "http://tenant namespace url/media/uss-tenant/properties" 
     -H "accept: text/plain" 
     -H "Content-Type: application/json" 
     -d "{ \"awsAccessKey\": \"ABCDEF1IE2334J5KLM6N\", 
           \"awsSecretKey\": \"ABCD1EfiKJkLMNO2PqRS3tUvw8X4Y0/9\", 
           \"clientRegion\": \"US-WEST\", 
           \"roleARN\": \"arn:aws:iam::0123456789012:role/USS_API\", 
           \"roleSessionName\": \"USS_API\"}"
Header Parameter

Authorization - Bearer Token

Path Parameters

Parameter Name

Data Type

Description

Required/ Optional

tenandId

String

Id of the tenant. The storage properties are saved for the given tenant id.

To know the tenantId, reach out to U-Self Serve Engineering Team.

Required

Request Parameters

Parameter Name

Data Type

Description

Required/ Optional

awsAccessKey

String

Enter the AWS access key.

Required

awsSecretKey

String

Enter the AWS secret key.

Required

clientRegion

String

Enter the client Region.

Required

roleARN

String

Enter the role ARN (Amazon Resource Name).

Required

roleSessionName

String

Enter the role session name.

Required

Sample Request
"{ \"awsAccessKey\": \"ABCDEF1IE2334J5KLM6N\", 
   \"awsSecretKey\": \"ABCD1EfiKJkLMNO2PqRS3tUvw8X4Y0/9\", 
   \"clientRegion\": \"US-WEST\", 
   \"roleARN\": \"arn:aws:iam::0123456789012:role/USS_API\", 
   \"roleSessionName\": \"USS_API\"}"
Response and Error Codes

Response Codes

Condition

200

OK

201

Created

401

Unauthorized

403

Forbidden

404

Not Found