Changing publication settings
This method allows changing the publication type, deferred publication date and % for partial release.
Key Points to Note:
-
% for partial publication can only be edited upward;
-
if
partialValue
—100
, the application is considered to be fully rolled out; -
you can change either
partialValue
orpublishType
andpublishDateTime
(for delayed publication).
Interaction parameters
POST
https://public-api.rustore.ru/public/v1/application/{packageName}/version/{versionId}/publish-settings
Attribute | Type | Required | Location | Description | Example |
---|---|---|---|---|---|
Public-Token | string | Yes | header | Access token to Public API Rustore. | N/A |
packageName | string | Yes | path | App package name | N/A |
versionId | number | Yes | path | App version | N/A |
publishType | string | No | body | Publication type Possible values: • MANUAL — manual publication; • INSTANTLY — automatic publication immediately after review; • DELAYED — delayed publication. | MANUAL |
publishDateTime | timestamptz | • No • Yes, if publishType = DELAYED | body | Date and time for delayed publication: format: yyyy-MM-dd'T'HH:mm:ssXXX . The specified date must be no earlier than 24 hours and no later than 60 days from the planned submission date. The delayed publication date can be changed. Note: if publishType is MANUAL или INSTANTLY , this parameter can be anything and will not be taken into account. | 2022-07-08T13:24:41.8328711+03:00 |
partialValue | number | No | body | Percentage for partial publication Possible values: - 5 % - 10 % - 25 % - 50 % - 75 % - 100 % | 5 |
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 for changing % for partial publication
curl --location 'https://public-api.rustore.ru/public/v1/application/com.example.pblsh_v2/version/704372/publish-settings' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Public-Token: {YOURtoken}\
--data '{
"partialValue": 100
}'
Response example
{
"code": "OK",
"message": null,
"body": null,
"timestamp": "2023-08-14T15:35:12.701709488+03:00"
}