forge-oss
Version:
Asynchronous Javascript/Node.js library for the Autodesk Forge OSS API.
821 lines (560 loc) • 32.6 kB
Markdown
All URIs are relative to *https://developer.api.autodesk.com/*
Method | HTTP request | Description
------------- | ------------- | -------------
[**copyTo**](ObjectsApi.md
[**createSignedResource**](ObjectsApi.md
[**deleteObject**](ObjectsApi.md
[**deleteSignedResource**](ObjectsApi.md
[**getObject**](ObjectsApi.md
[**getObjectDetails**](ObjectsApi.md
[**getObjects**](ObjectsApi.md
[**getSessionid**](ObjectsApi.md
[**getSignedResource**](ObjectsApi.md
[**uploadChunk**](ObjectsApi.md
[**uploadObject**](ObjectsApi.md
[**uploadSignedResource**](ObjectsApi.md
[**uploadSignedResourcesChunk**](ObjectsApi.md
<a name="copyTo"></a>
> ObjectDetails copyTo(bucketKey, objectName, newObjName)
Copies an object to another object name in the same bucket.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var newObjName = "newObjName_example"; // String | URL-encoded Object key to use as the destination
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.copyTo(bucketKey, objectName, newObjName, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**newObjName** | **String**| URL-encoded Object key to use as the destination |
[**ObjectDetails**](ObjectDetails.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="createSignedResource"></a>
> PostObjectSigned createSignedResource(bucketKey, objectName, postBucketsSigned, opts)
This endpoint creates a signed URL that can be used to download an object within the specified expiration time. Be aware that if the object the signed URL points to is deleted or expires before the signed URL expires, then the signed URL will no longer be valid. A successful call to this endpoint requires bucket owner access.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var postBucketsSigned = new ForgeOss.PostBucketsSigned(); // PostBucketsSigned | Body Structure
var opts = {
'access': "read" // String | Access for signed resource Acceptable values: `read`, `write`, `readwrite`. Default value: `read`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createSignedResource(bucketKey, objectName, postBucketsSigned, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**postBucketsSigned** | [**PostBucketsSigned**](PostBucketsSigned.md)| Body Structure |
**access** | **String**| Access for signed resource Acceptable values: &
[**PostObjectSigned**](PostObjectSigned.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="deleteObject"></a>
> deleteObject(bucketKey, objectName, )
Deletes an object from the bucket.
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteObject(bucketKey, objectName, , callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
null (empty response body)
[](../README.md
- **Content-Type**: application/json
- **Accept**: Not defined
<a name="deleteSignedResource"></a>
> InputStream deleteSignedResource(id, , opts)
Delete a signed URL. A successful call to this endpoint requires bucket owner access.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var id = "id_example"; // String | Id of signed resource
var opts = {
'region': "US" // String | The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteSignedResource(id, , opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Id of signed resource |
**region** | **String**| The region where the bucket resides Acceptable values: &
[**InputStream**](InputStream.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: text/plain
<a name="getObject"></a>
> InputStream getObject(bucketKey, objectName, , opts)
Download an object.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var opts = {
'range': "range_example", // String | A range of bytes to download from the specified object.
'ifNoneMatch': "ifNoneMatch_example", // String | The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included.
'ifModifiedSince': new Date("2013-10-20"), // Date | If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body.
'acceptEncoding': "acceptEncoding_example", // String | When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getObject(bucketKey, objectName, , opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**range** | **String**| A range of bytes to download from the specified object. | [optional]
**ifNoneMatch** | **String**| The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included. | [optional]
**ifModifiedSince** | **Date**| If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body. | [optional]
**acceptEncoding** | **String**| When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used. | [optional]
[**InputStream**](InputStream.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/octet-stream
<a name="getObjectDetails"></a>
> ObjectFullDetails getObjectDetails(bucketKey, objectName, , opts)
Returns object details in JSON format.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var opts = {
'ifModifiedSince': new Date("2013-10-20"), // Date | If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body.
'_with': "_with_example" // String | Extra information in details; multiple uses are supported Acceptable values: `createdDate`, `lastAccessedDate`, `lastModifiedDate`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getObjectDetails(bucketKey, objectName, , opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**ifModifiedSince** | **Date**| If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body. | [optional]
**_with** | **String**| Extra information in details; multiple uses are supported Acceptable values: &
[**ObjectFullDetails**](ObjectFullDetails.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="getObjects"></a>
> InlineResponse2001 getObjects(bucketKey, , opts)
List objects in a bucket. It is only available to the bucket creator.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var opts = {
'limit': 10, // Integer | Limit to the response size, Acceptable values: 1-100 Default = 10
'beginsWith': "beginsWith_example", // String | Provides a way to filter the based on object key name
'startAt': "startAt_example" // String | Key to use as an offset to continue pagination This is typically the last bucket key found in a preceding GET buckets response
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getObjects(bucketKey, , opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**limit** | **Integer**| Limit to the response size, Acceptable values: 1-100 Default &
**beginsWith** | **String**| Provides a way to filter the based on object key name | [optional]
**startAt** | **String**| Key to use as an offset to continue pagination This is typically the last bucket key found in a preceding GET buckets response | [optional]
[**InlineResponse2001**](InlineResponse2001.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="getSessionid"></a>
> getSessionid(bucketKey, objectName, sessionId)
This endpoint returns status information about a resumable upload.
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var sessionId = "sessionId_example"; // String | Unique identifier of a session of a file being uploaded
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getSessionid(bucketKey, objectName, sessionId, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**sessionId** | **String**| Unique identifier of a session of a file being uploaded |
null (empty response body)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="getSignedResource"></a>
> InputStream getSignedResource(id, , opts)
Download an object using a signed URL.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var id = "id_example"; // String | Id of signed resource
var opts = {
'range': "range_example", // String | A range of bytes to download from the specified object.
'ifNoneMatch': "ifNoneMatch_example", // String | The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included.
'ifModifiedSince': new Date("2013-10-20"), // Date | If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body.
'acceptEncoding': "acceptEncoding_example", // String | When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used.
'region': "US" // String | The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getSignedResource(id, , opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Id of signed resource |
**range** | **String**| A range of bytes to download from the specified object. | [optional]
**ifNoneMatch** | **String**| The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included. | [optional]
**ifModifiedSince** | **Date**| If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body. | [optional]
**acceptEncoding** | **String**| When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used. | [optional]
**region** | **String**| The region where the bucket resides Acceptable values: &
[**InputStream**](InputStream.md)
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/octet-stream
<a name="uploadChunk"></a>
> ObjectDetails uploadChunk(bucketKey, objectName, contentLength, contentRange, sessionId, body, opts)
This endpoint allows resumable uploads for large files in chunks.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var contentLength = 56; // Integer | Indicates the size of the request body.
var contentRange = "contentRange_example"; // String | Byte range of a segment being uploaded
var sessionId = "sessionId_example"; // String | Unique identifier of a session of a file being uploaded
var body = new ForgeOss.InputStream(); // InputStream |
var opts = {
'contentDisposition': "contentDisposition_example", // String | The suggested default filename when downloading this object to a file after it has been uploaded.
'ifMatch': "ifMatch_example" // String | If-Match header containing a SHA-1 hash of the bytes in the request body can be sent by the calling service or client application with the request. If present, OSS will use the value of If-Match header to verify that a SHA-1 calculated for the uploaded bytes server side matches what was sent in the header. If not, the request is failed with a status 412 Precondition Failed and the data is not written.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.uploadChunk(bucketKey, objectName, contentLength, contentRange, sessionId, body, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**contentLength** | **Integer**| Indicates the size of the request body. |
**contentRange** | **String**| Byte range of a segment being uploaded |
**sessionId** | **String**| Unique identifier of a session of a file being uploaded |
**body** | [**InputStream**](InputStream.md)| |
**contentDisposition** | **String**| The suggested default filename when downloading this object to a file after it has been uploaded. | [optional]
**ifMatch** | **String**| If-Match header containing a SHA-1 hash of the bytes in the request body can be sent by the calling service or client application with the request. If present, OSS will use the value of If-Match header to verify that a SHA-1 calculated for the uploaded bytes server side matches what was sent in the header. If not, the request is failed with a status 412 Precondition Failed and the data is not written. | [optional]
[**ObjectDetails**](ObjectDetails.md)
[](../README.md
- **Content-Type**: application/octet-stream
- **Accept**: application/json
<a name="uploadObject"></a>
> ObjectDetails uploadObject(bucketKey, objectName, contentLength, body, opts)
Upload an object. If the specified object name already exists in the bucket, the uploaded content will overwrite the existing content for the bucket name/object name combination.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var bucketKey = "bucketKey_example"; // String | URL-encoded bucket key
var objectName = "objectName_example"; // String | URL-encoded object name
var contentLength = 56; // Integer | Indicates the size of the request body.
var body = new ForgeOss.InputStream(); // InputStream |
var opts = {
'contentDisposition': "contentDisposition_example", // String | The suggested default filename when downloading this object to a file after it has been uploaded.
'ifMatch': "ifMatch_example" // String | If-Match header containing a SHA-1 hash of the bytes in the request body can be sent by the calling service or client application with the request. If present, OSS will use the value of If-Match header to verify that a SHA-1 calculated for the uploaded bytes server side matches what was sent in the header. If not, the request is failed with a status 412 Precondition Failed and the data is not written.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.uploadObject(bucketKey, objectName, contentLength, body, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucketKey** | **String**| URL-encoded bucket key |
**objectName** | **String**| URL-encoded object name |
**contentLength** | **Integer**| Indicates the size of the request body. |
**body** | [**InputStream**](InputStream.md)| |
**contentDisposition** | **String**| The suggested default filename when downloading this object to a file after it has been uploaded. | [optional]
**ifMatch** | **String**| If-Match header containing a SHA-1 hash of the bytes in the request body can be sent by the calling service or client application with the request. If present, OSS will use the value of If-Match header to verify that a SHA-1 calculated for the uploaded bytes server side matches what was sent in the header. If not, the request is failed with a status 412 Precondition Failed and the data is not written. | [optional]
[**ObjectDetails**](ObjectDetails.md)
[](../README.md
- **Content-Type**: application/octet-stream
- **Accept**: application/json
<a name="uploadSignedResource"></a>
> PostObjectSigned uploadSignedResource(id, contentLength, body, opts)
Overwrite a existing object using a signed URL. Conditions to call this operation: Object is available Expiration period is valid Signed URL should be created with `write&
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var id = "id_example"; // String | Id of signed resource
var contentLength = 56; // Integer | Indicates the size of the request body.
var body = new ForgeOss.InputStream(); // InputStream |
var opts = {
'contentDisposition': "contentDisposition_example", // String | The suggested default filename when downloading this object to a file after it has been uploaded.
'xAdsRegion': "US" // String | The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US`
'ifMatch': "ifMatch_example" // String | If-Match header containing a SHA-1 hash of the bytes in the request body can be sent by the calling service or client application with the request. If present, OSS will use the value of If-Match header to verify that a SHA-1 calculated for the uploaded bytes server side matches what was sent in the header. If not, the request is failed with a status 412 Precondition Failed and the data is not written.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.uploadSignedResource(id, contentLength, body, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Id of signed resource |
**contentLength** | **Integer**| Indicates the size of the request body. |
**body** | [**InputStream**](InputStream.md)| |
**contentDisposition** | **String**| The suggested default filename when downloading this object to a file after it has been uploaded. | [optional]
**xAdsRegion** | **String**| The region where the bucket resides Acceptable values: &
**ifMatch** | **String**| If-Match header containing a SHA-1 hash of the bytes in the request body can be sent by the calling service or client application with the request. If present, OSS will use the value of If-Match header to verify that a SHA-1 calculated for the uploaded bytes server side matches what was sent in the header. If not, the request is failed with a status 412 Precondition Failed and the data is not written. | [optional]
[**PostObjectSigned**](PostObjectSigned.md)
[](../README.md
- **Content-Type**: application/octet-stream
- **Accept**: application/json
<a name="uploadSignedResourcesChunk"></a>
> PostObjectSigned uploadSignedResourcesChunk(id, contentRange, sessionId, body, opts)
Resumable upload for signed URLs.
### Example
```javascript
var ForgeOss = require('forge-oss');
var defaultClient = ForgeOss.ApiClient.default;
// Configure OAuth2 access token for authorization: oauth2_application
var oauth2_application = defaultClient.authentications['oauth2_application'];
oauth2_application.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new ForgeOss.ObjectsApi();
var id = "id_example"; // String | Id of signed resource
var contentRange = "contentRange_example"; // String | Byte range of a segment being uploaded
var sessionId = "sessionId_example"; // String | Unique identifier of a session of a file being uploaded
var body = new ForgeOss.InputStream(); // InputStream |
var opts = {
'contentDisposition': "contentDisposition_example", // String | The suggested default filename when downloading this object to a file after it has been uploaded.
'xAdsRegion': "US" // String | The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.uploadSignedResourcesChunk(id, contentRange, sessionId, body, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Id of signed resource |
**contentRange** | **String**| Byte range of a segment being uploaded |
**sessionId** | **String**| Unique identifier of a session of a file being uploaded |
**body** | [**InputStream**](InputStream.md)| |
**contentDisposition** | **String**| The suggested default filename when downloading this object to a file after it has been uploaded. | [optional]
**xAdsRegion** | **String**| The region where the bucket resides Acceptable values: &
[**PostObjectSigned**](PostObjectSigned.md)
[](../README.md
- **Content-Type**: application/octet-stream
- **Accept**: application/json