Admin - Promotions

Update a promotion (admin only)

patch/api/admin/promotions/{id}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/admin/promotions/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required

Request body multipart/form-data

titlestring
forward_urlstring
start_atstring
end_atstring
prioritynumber
is_activeboolean
countriesstring[]
rolesstring[]
subscription_statusesstring[]
group_idsstring[]

Example request

{
  "title": "Spring sale banner",
  "forward_url": "https://rewritelifestyle.com/spring-sale",
  "start_at": "2026-05-01T00:00:00.000Z",
  "end_at": "2026-05-15T23:59:59.000Z",
  "countries": [
    "US",
    "IN"
  ],
  "roles": [
    "member"
  ],
  "subscription_statuses": [
    "active",
    "trialing"
  ],
  "group_ids": [
    12,
    34
  ]
}

Changes

No recorded changes to this operation across all 34 revisions of this API.