Uploads images to a specified image library.

Operation 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 structure. You can also select an existing HTTP request. For more information, see SDK overview.

Billing method: This operation is free of charge.

Request parameters

Parameter Type Required Example Description
ImageLibId Integer Yes 2147 The primary key ID of the image library.
Urls List Yes [\"http://oss-example.com/1.jpg\"] The list of images. Each element in the list is the access URL of an image in Object Storage Service (OSS).

Response parameters

Parameter Type Example Description
RequestId String 795D8871-4889-4C0F-A8B1-C7D2B990FF61 The ID of the request.

Examples

Sample requests
{
    "ImageLibId": "2147",
    "Urls": "[\"http://oss-example.com/1.jpg\"]"
}
Sample success responses
{
    "RequestId": "795D8871-4889-4C0F-A8B1-C7D2B990FF61",
    "code": 200
}