Uploading an app icon
This method allows uploading an application icon.
Key Points to Note:
.jpeg
and.png files only
;- file size should not exceed
3
MB; - uploaded image size is 512×512 px.
Interaction parameters
POST
https://public-api.rustore.ru/public/v1/application/{packageName}/version/{versionId}/image/icon
Attribute | Type | Required | Location | Description |
---|---|---|---|---|
Public-Token | string | Yes | header | Access token to Public API Rustore. |
packageName | number | Yes | path | App ID |
versionId | number | Yes | path | App version |
Form data
Attribute | Type | Required | Description |
---|---|---|---|
file | multipart/form-data | Yes | File |
Response example
Attribute | Type | Required | Description | Example |
---|---|---|---|---|
code | string | Yes | Response code | error /OK |
message | string | No | Decoded response code | N/A |
timestamp | timestamptz | Yes | Response time | 2022-07-08T13:24:41.8328711+03:00 |
Example
curl --location --request POST 'https://public-api.rustore.ru/public/v1/application/com.package.example/version/123/image/icon' \
--header 'Content-Type: application/json' \
--header 'Public-Token: {YOURtoken}' \
--form 'file=@"/Users/User/Downloads/img.jpg"'