Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Latest commit

 

History

History
57 lines (48 loc) · 1.12 KB

change-email.md

File metadata and controls

57 lines (48 loc) · 1.12 KB

Change Email

Change the email address for an account.

Request

Response

  • Status: 200 OK

  • Body:

    {
      "id":               1,
      "email":            "[email protected]",
      "domain":           null,
      "domain_home_page": null,
      "private_items":    true,
      "subscribed":       false,
      "alpha":            false,
      "created_at":       "2010-12-10T17:07:01Z",
      "updated_at":       "2010-12-10T20:33:38Z",
      "activated_at":     "2010-12-10T17:07:01Z"
    }

Example

curl --digest -u [email protected]:towel \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -d \
       '{
          "user": {
            "email":            "[email protected]",
            "current_password": "towel"
          }
        }' \
     -X PUT \
     "http://my.cl.ly/account"