Updates a particular offer chain.
| project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
| offer_chain_id required | integer Offer chain ID. Example: 101 |
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 the offer chain starts. | ||||||||||
required | Array of objects | ||||||||||
Array
| |||||||||||
| is_enabled required | boolean | ||||||||||
| id | integer Unique offer chain 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. | |||||||||||
| date_end | string or null <date-time> Date when the offer chain ends. Can be | ||||||||||
(interval_type = weekly (object or null)) or (interval_type = monthly (object or null)) or (interval_type = hourly (object or null)) Reset period of the offer chain. | |||||||||||
One of: Weekly reset of the offer chain. | |||||||||||
| is_always_visible | boolean Default: true Whether the chain is visible to all users:
Applies only in the context of personalized chains and is used if the | ||||||||||
Array of type = string (object) or type = number (object) or type = date (object) [ 1 .. 100 ] items Conditions for validating user attributes. Determine chain availability based on whether user attributes match all specified conditions. | |||||||||||
Array ([ 1 .. 100 ] items) One of: | |||||||||||
Offer chain was successfully updated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
The offer chain was not found.
Invalid offer chain configuration.
{- "name": {
- "en": "Updated offer chain",
- "ru": "Обновляемая цепочка предложений",
- "de": "Aktualisierte Angebotskette",
- "fr": "Chaîne d'offres mise à jour",
- "it": "Catena di offerte aggiornata"
}, - "description": {
- "en": "A short description of a regular offer chain",
- "ru": "Краткое описание обычной цепочки предложений",
- "de": "Eine kurze Beschreibung einer regulären Angebotskette",
- "fr": "Une brève description d'une chaîne d'offres régulière",
- "it": "Una breve descrizione di una catena di offerte regolare"
}, - "order": 4,
- "date_start": "2023-04-15T18:16:00+05:00",
- "date_end": null,
- "recurrent_schedule": null,
- "is_enabled": true,
- "steps": [
- {
- "step_id": 10,
- "step_number": 1,
- "is_free": false,
- "items": [
- {
- "sku": "chain_step_1_paid_bundle_sku",
- "quantity": 2
}
]
}, - {
- "step_number": 2,
- "is_free": true,
- "items": [
- {
- "sku": "chain_step_2_free_virtual_good_sku",
- "quantity": 1
}
]
}, - {
- "step_number": 3,
- "is_free": false,
- "items": [
- {
- "sku": "chain_step_3_paid_virtual_currency_package_sku",
- "quantity": 5
}
]
}, - {
- "step_id": 9,
- "step_number": 4,
- "is_free": true,
- "items": [
- {
- "sku": "chain_step_4_free_bundle_sku",
- "quantity": 1
}
]
}
], - "is_always_visible": true
}{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}