diff --git a/api/openapi.yaml b/api/openapi.yaml
index a882bf66..f7d1da77 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -146,8 +146,8 @@ paths:
schema:
type: string
style: simple
- - description: Media ID to retrieve.
- example: 14762070468292kw2fuqty55yp2b2/0/bw.png
+ - description: The ID of the media file.
+ example: bw.png
explode: false
in: path
name: mediaId
@@ -227,8 +227,8 @@ paths:
schema:
type: string
style: simple
- - description: Media ID to retrieve.
- example: 14762070468292kw2fuqty55yp2b2/0/bw.png
+ - description: The ID of the media file.
+ example: bw.png
explode: false
in: path
name: mediaId
@@ -320,8 +320,8 @@ paths:
schema:
type: string
style: simple
- - description: Media ID to retrieve.
- example: 14762070468292kw2fuqty55yp2b2/0/bw.png
+ - description: The ID of the media file.
+ example: bw.png
explode: false
in: path
name: mediaId
@@ -7363,8 +7363,8 @@ components:
type: string
style: simple
mediaId:
- description: Media ID to retrieve.
- example: 14762070468292kw2fuqty55yp2b2/0/bw.png
+ description: The ID of the media file.
+ example: bw.png
explode: false
in: path
name: mediaId
diff --git a/bandwidth.yml b/bandwidth.yml
index 4b88b456..53949fed 100644
--- a/bandwidth.yml
+++ b/bandwidth.yml
@@ -8237,8 +8237,8 @@ components:
in: path
name: mediaId
required: true
- description: Media ID to retrieve.
- example: 14762070468292kw2fuqty55yp2b2/0/bw.png
+ description: The ID of the media file.
+ example: bw.png
schema:
type: string
contentType:
diff --git a/docs/MediaApi.md b/docs/MediaApi.md
index cebc97b8..8cd6b0d1 100644
--- a/docs/MediaApi.md
+++ b/docs/MediaApi.md
@@ -44,7 +44,7 @@ public class Example {
MediaApi apiInstance = new MediaApi(defaultClient);
String accountId = "9900000"; // String | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
- String mediaId = "14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
+ String mediaId = "bw.png"; // String | The ID of the media file.
try {
apiInstance.deleteMedia(accountId, mediaId);
} catch (ApiException e) {
@@ -63,7 +63,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **accountId** | **String**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | |
-| **mediaId** | **String**| Media ID to retrieve. | |
+| **mediaId** | **String**| The ID of the media file. | |
### Return type
@@ -125,7 +125,7 @@ public class Example {
MediaApi apiInstance = new MediaApi(defaultClient);
String accountId = "9900000"; // String | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
- String mediaId = "14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
+ String mediaId = "bw.png"; // String | The ID of the media file.
try {
File result = apiInstance.getMedia(accountId, mediaId);
System.out.println(result);
@@ -145,7 +145,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **accountId** | **String**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | |
-| **mediaId** | **String**| Media ID to retrieve. | |
+| **mediaId** | **String**| The ID of the media file. | |
### Return type
@@ -289,7 +289,7 @@ public class Example {
MediaApi apiInstance = new MediaApi(defaultClient);
String accountId = "9900000"; // String | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
- String mediaId = "14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
+ String mediaId = "bw.png"; // String | The ID of the media file.
File body = new File("/path/to/file"); // File |
String contentType = "audio/wav"; // String | The media type of the entity-body.
String cacheControl = "no-cache"; // String | General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -311,7 +311,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **accountId** | **String**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | |
-| **mediaId** | **String**| Media ID to retrieve. | |
+| **mediaId** | **String**| The ID of the media file. | |
| **body** | **File**| | |
| **contentType** | **String**| The media type of the entity-body. | [optional] |
| **cacheControl** | **String**| General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. | [optional] |
diff --git a/src/main/java/com/bandwidth/sdk/api/MediaApi.java b/src/main/java/com/bandwidth/sdk/api/MediaApi.java
index a59de0ff..f9ec25ff 100644
--- a/src/main/java/com/bandwidth/sdk/api/MediaApi.java
+++ b/src/main/java/com/bandwidth/sdk/api/MediaApi.java
@@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
/**
* Build call for deleteMedia
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -162,7 +162,7 @@ private okhttp3.Call deleteMediaValidateBeforeCall(@javax.annotation.Nonnull Str
* Delete Media
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -187,7 +187,7 @@ public void deleteMedia(@javax.annotation.Nonnull String accountId, @javax.annot
* Delete Media
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -214,7 +214,7 @@ public ApiResponse deleteMediaWithHttpInfo(@javax.annotation.Nonnull Strin
* Delete Media (asynchronously)
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -242,7 +242,7 @@ public okhttp3.Call deleteMediaAsync(@javax.annotation.Nonnull String accountId,
/**
* Build call for getMedia
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -328,7 +328,7 @@ private okhttp3.Call getMediaValidateBeforeCall(@javax.annotation.Nonnull String
* Get Media
* Downloads a media file you previously uploaded.
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -355,7 +355,7 @@ public File getMedia(@javax.annotation.Nonnull String accountId, @javax.annotati
* Get Media
* Downloads a media file you previously uploaded.
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -383,7 +383,7 @@ public ApiResponse getMediaWithHttpInfo(@javax.annotation.Nonnull String a
* Get Media (asynchronously)
* Downloads a media file you previously uploaded.
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -580,7 +580,7 @@ public okhttp3.Call listMediaAsync(@javax.annotation.Nonnull String accountId, @
/**
* Build call for uploadMedia
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param body (required)
* @param contentType The media type of the entity-body. (optional)
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -731,7 +731,7 @@ private okhttp3.Call uploadMediaValidateBeforeCall(@javax.annotation.Nonnull Str
* Upload Media
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param body (required)
* @param contentType The media type of the entity-body. (optional)
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -759,7 +759,7 @@ public void uploadMedia(@javax.annotation.Nonnull String accountId, @javax.annot
* Upload Media
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param body (required)
* @param contentType The media type of the entity-body. (optional)
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -789,7 +789,7 @@ public ApiResponse uploadMediaWithHttpInfo(@javax.annotation.Nonnull Strin
* Upload Media (asynchronously)
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
- * @param mediaId Media ID to retrieve. (required)
+ * @param mediaId The ID of the media file. (required)
* @param body (required)
* @param contentType The media type of the entity-body. (optional)
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)