PATCH /users/:id/identity/email

PATCH /users/{id}/identity/email

Update the email of the user

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

application/json

Body Required

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    User Not Found

  • 422

    Unprocessable Entity

  • 500

    Server Error

PATCH /users/{id}/identity/email
curl \
 -X PATCH https://api.cosmily.com/api/v1/users/{id}/identity/email \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"new_email":"joe@cosmily.com"}'
Request example
{
  "new_email": "joe@cosmily.com"
}
Response examples (200)
{
  "success": "string"
}