Uploads images to a specified image library.
Description
Operation: UploadImageToLib
You can call this operation to upload images to a specified image library. For more information about how to construct an HTTP request, see Request syntax. You can also select an existing HTTP request. For more information, see SDK overview.
Billing method: This operation is free of charge.
QPS limit
You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
ImageLibId | Integer | Yes | 2147 | The primary key ID of the image library. |
Urls | List | Yes | [\"http://example.com/1.jpg\"] | The list of images. Each element in the list is the access URL of the Object Storage Service (OSS) bucket of an image. The URL can be up to 2048 characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 795D8871-4889-4C0F-A8B1-C7D2B990FF61 | The ID of the request. |
Examples
Sample requests
http(s)://green.cn-shanghai.aliyuncs.com/?
Action=UploadImageToLib&ServiceModule=open_api
&<Common request parameters>
{
"ImageLibId": 2147,
"Urls": "[\"http://example.com/1.jpg\"]"
}
Sample responses
{
"RequestId": "795D8871-4889-4C0F-A8B1-C7D2B990FF61",
"code": 200
}