Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (48 sloc) 1.12 KB

Change Email

Change the email address for an account.

Request

Response

  • Status: 200 OK

  • Body:

    {
      "id":               1,
      "email":            "ford@prefect.com",
      "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 arthur@dent.com:towel \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -d \
       '{
          "user": {
            "email":            "ford@prefect.com",
            "current_password": "towel"
          }
        }' \
     -X PUT \
     "http://my.cl.ly/account"