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

Body Required

Responses

  • successful operation

    Hide response attribute Show response attribute object
  • Bad Request

  • Authorization information is missing or invalid.

  • User Not Found

  • Unprocessable Entity

  • 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"
}
Request examples
{
  "new_email": "joe@cosmily.com"
}
Response examples (200)
{
  "success": "string"
}
Response examples (200)
{
  "success": "string"
}