Skip to main content
Aria Knowledge Central

update_promotion_m Sample Call and Response

This example shows a call to update_promotion_m that revises the description of an existing promotion and caps its total number of uses, based on the update_promotion_m method defined in methods_m_r73.yml, Admin Tools API, release seventy-three.

This example covers every required field, plus the no_of_uses field as the expiry rule for the promotion. It does not cover the start_date and end_date alternative to no_of_uses, or the translation-related locale fields.

Sample call

{
  "rest_call": "update_promotion_m",
  "output_format": "json",
  "client_no": 100024,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "promo_cd": "FALL2026PROMO",
  "promo_desc": "Fall Twenty Twenty-Six Seasonal Promotion",
  "promo_plan_set_no": 71100,
  "no_of_uses": "1000"
}

The rest_call and output_format fields sit outside the method’s own documented arguments in the yml; the REST layer common to the Admin Tools API adds these two fields to every call. Client_no and auth_key come from the shared param_defaults block. Promo_cd, promo_desc, and promo_plan_set_no are the method’s own required fields (nullable: false); promo_cd also serves as the identifier of the existing promotion being updated, since this method has no separate numeric promotion number field. Promo_plan_set_no links this promotion to the promotional plan set created and revised in the update_promo_plan_set_m example.

No_of_uses caps the promotion at one thousand total uses before it expires. The yml notes that no_of_uses and the start_date and end_date pair are alternative ways of setting an expiry rule: if no_of_uses is set, the date pair need not be, and vice versa; this example uses no_of_uses.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "promo_cd": "FALL2026PROMO"
}

An error_code of zero and an error_msg of “OK” indicate that Aria updated the promotion successfully. Promo_cd echoes back the promotion code that was updated.

Left out of this example are start_date and end_date, the date-based alternative to the no_of_uses expiry rule used here, and locale_no and locale_name, which apply only when working with translated promotion text in a specific locale.

TOP
  • Was this article helpful?