Updates a particular daily reward.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
daily_chain_id required | integer Daily reward ID. Example: 101 |
A daily reward.
required | (two-letter (object or null)) or (five-letter (object or null)) Object with localizations for item’s name. Accepts value in one of two formats: two-letter lowercase language codes (e.g., | ||||
One of: Two-letter lowercase language codes. | |||||
date_start required | string <date-time> Date when your daily reward starts. | ||||
required | Array of objects | ||||
is_enabled required | boolean | ||||
type required | string Type of daily reward which dictates when users can claim their rewards.
| ||||
id | integer Unique daily reward ID. | ||||
order | integer Defines arrangement order. | ||||
(two-letter (object or null)) or (five-letter (object or null)) Object with localizations for item’s description. Accepts value in one of two formats: two-letter lowercase language codes (e.g., | |||||
One of: Two-letter lowercase language codes. | |||||
is_recurrent | boolean Default: false Whether the daily reward recurrent. If |
Daily reward was successfully updated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Daily reward was not found.
Incorrect daily reward configuration errors.
{- "name": {
- "en": "Updated daily reward",
- "ru": "Обновленная ежедневная награда"
}, - "description": {
- "en": "Updated daily reward description"
}, - "order": 4,
- "date_start": "2023-04-15T18:16:00+05:00",
- "is_enabled": true,
- "steps": [
- {
- "step_number": 1,
- "items": [
- {
- "sku": "vg_enabled_shown_in_store_1",
- "quantity": 1
}
]
}, - {
- "step_number": 2,
- "items": [
- {
- "sku": "vg_enabled_shown_in_store_2",
- "quantity": 1
}
]
}, - {
- "step_id": 10,
- "step_number": 3,
- "items": [
- {
- "sku": "vg_not_shown_in_store",
- "quantity": 1
}
]
}, - {
- "step_id": 8,
- "step_number": 4,
- "items": [
- {
- "sku": "bundle_enabled_shown_in_store_with_2_enabled_shown_in_store_vg",
- "quantity": 1
}
]
}, - {
- "step_number": 5,
- "items": [
- {
- "sku": "vcp_enabled_shown_in_store_1_of_10_vc_enabled_shown_in_store_1",
- "quantity": 1
}
]
}
], - "type": "calendar_hard"
}
{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}