Change customer member password

PUT /customers/{customer_id}/members/{member_id}/password

Request Structure

  • new_password: string, required
  • new_password_again: string, required

Example Request

PUT /api/v1/customers/3/members/5/password HTTP/1.1
Host: tph.io
Content-Type: application/json
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b

{
    "new_password": "newpassword123",
    "new_password_again": "newpassword123"
}

Response Structure

  • success: bool
  • messages: string
  • data: object
    • data: object
      • id: int
      • first_name: string
      • last_name: string
      • email: string
      • telephone_number: string
      • mobile_number: string
      • is_active: true
      • is_enabled: true
      • last_login: string ("2020-12-31 00:00:00")
      • created_at: string ("2020-12-31 00:00:00+00:00")

Example Response

{
  "success":true,
  "messages":"Password updated.",
  "data":{
    "data":{
      "id":5,
      "first_name":"Customer Staff",
      "last_name":"Example",
      "email":"customerstaff@example.com",
      "telephone_number":null,
      "mobile_number":null,
      "is_active":true,
      "is_enabled":true,
      "last_login":null,
      "created_at":"2018-04-11T10:10:17+00:00"
    }
  }
}