POST api/v1/media/images
Upload images for offers.
i. Request Parameters
Form Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | Image file to upload. |
| type | string | No | Image type. "title" or "description". default is "title". |
| gameId | int | Yes | Game ID. |
ii. Response Example
Success Response
{
"code": 10000,
"message": "Operation Successful.",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"data": {
"blobName": "202606092212591259.png",
"sasUri": "https://cdn-image.azureedge.net/offer-image/888liutest6/202606092212591259.png",
"created": "2026-06-10T05:12:59.3381623+00:00",
"length": 0,
"verified": true
}
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | Response code. 10000 indicates success, other values indicate an error. |
| message | string | Response message. Contains error details on failure. |
| requestId | string | Unique identifier for the request, used for tracking. |
| data.blobName | string | Blob name of the uploaded image. |
| data.sasUri | string | SAS URI of the uploaded image. |
| data.created | string | Creation timestamp of the uploaded image. |
| data.length | int | Size of the uploaded image in bytes. |
| data.verified | bool | Indicates if the image has been verified. |
iii. Error Response Example
Error Response
{
"code": 10002,
"message": "Invalid parameter.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Common Error Codes
| Parameter | Type | Description |
|---|---|---|
| code | int | Error code. Common values: 10002 (Invalid parameter), 50001 (Internal server error). |
| message | string | Detailed error message explaining what went wrong. |
| requestId | string | Unique identifier for the request, used for tracking. |