ops
ops-offers

Update an offer's customer email

Changed on
put/ops/offers/update_customer_email

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/offers/update_customer_email
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-offer:edit

Request body

is_dry_runboolean

Example request

{
  "is_dry_run": false,
  "rows": [
    {
      "email": "abc123",
      "offer_id": "739b63c2-9e58-4964-b38d-4ebb424de242"
    }
  ]
}

Response

OK response.

failed_countinteger required
updated_customers_countinteger required

Example response

{
  "failed": [
    {
      "offer_id": "abc123",
      "reason": "abc123"
    }
  ],
  "failed_count": 1,
  "updated_customers_count": 1
}

Changes

    • info

      api operation id offer.updateCustomerEmailOps removed and replaced with offer#updateCustomerEmailOps

    • info

      api operation id offer#updateCustomerEmailOps removed and replaced with offer.updateCustomerEmailOps

    • info

      api tag ops-offers added