def update(self, store_id, promo_rule_id, data):
self.store_id = store_id<EOL>self.promo_rule_id = promo_rule_id<EOL>return self._mc_client._patch(url=self._build_path(store_id, '<STR_LIT>', promo_rule_id), data=data)<EOL>
Update a promo rule

:param store_id: The store id
:type :py:class:`str`
:param promo_rule_id: The id for the promo rule of a store.
:type :py:class:`str`
:param data:
:param data: The request body parameters
:type data: :py:class:`dict`
data = {
    "id": string,
    "title": string,
    "description": string,
    "starts_at": string,
    "ends_at": string,
    "amount": number,
    "type": string,
    "target": string,
    "enabled": boolean,
    "created_at_foreign": string,
    "updated_at_foreign": string,
}