Update customer's data

Changed on

Use /customers/:customerId endpoint to update customer's data like firstName, lastName or email.

patch/customers/{customerId}

Request

  • Base URL
    https://mediastoreapi-sandbox.cleeng.com
  • URL
    https://mediastoreapi-sandbox.cleeng.com/customers/{customerId}
  • Auth
    API key in header Authorization

Path parameters

customerIdstring required

Customer identifier at Cleeng

Request body

firstNamestring

Customer first name (1-50 characters)

lastNamestring

Customer last name (1-50 characters)

countrystring

New customer country. 2-letter country code (ISO 3166 - without 'UK')

localestring

Defines language and text formatting for the user. E.g. "en_US", "fr_FR"

externalDatastring

Custom data in JSON format

emailstring

New customer email. To update customer email confirmationPassword is required.

confirmationPasswordstring required

Required conditionally when updated customer email given

Response

200

Example response

{
  "responseData": {
    "id": 338816933,
    "email": "user@example.com",
    "firstName": "Username",
    "lastName": "Lastname",
    "country": "PL",
    "locale": "pl_PL",
    "regDate": "2020-02-12 15:18:56",
    "lastLoginDate": "2020-04-14 11:25:22",
    "lastUserIp": "213.156.120.102",
    "externalId": "1111",
    "externalData": {
      "ghostUser": true
    }
  }
}

Changes

    • breaking

      added the new required request property

    • warning

      deleted the header request parameter Content-Type

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      api operation id update-customer removed and replaced with update-customers-data

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status