Uploads images to a specified image library.
Operation description
Operation: UploadImageToLib
For information about how to construct an HTTP request, see Request syntax. You can also use an existing SDK. For more information, see SDK overview.
Billing: This operation is free of charge.
QPS limit
This operation supports up to 10 calls per second per account. Exceeding this limit triggers throttling, which may affect your business.
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 image URLs. Each element in the list is the access URL of an Object Storage Service (OSS) bucket object. The URL can be up to 2,048 characters in length. |
Response elements
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 795D8871-4889-4C0F-A8B1-C7D2B990FF61 | The request ID. |
Examples
Sample request
http(s)://green.cn-shanghai.aliyuncs.com/?Action=UploadImageToLib&ServiceModule=open_api
&<Common request parameters>
{
"ImageLibId": 2147,
"Urls": "[\"http://example.com/1.jpg\"]"
}Sample response
{
"RequestId": "795D8871-4889-4C0F-A8B1-C7D2B990FF61",
"code": 200
}