Sluby
REST APIAuth

Change the email the signed-in member signs in with.

Studio sessions only. Needs the current password; the password itself stays. Counts against the same attempt limits as a password change.

POST
/api/v1/auth/email/change

Studio sessions only. Needs the current password; the password itself stays. Counts against the same attempt limits as a password change.

Authorization

cookieAuth
cookiesluby_session<token>

Signed session cookie issued to the Studio at sign-in (email and password, GitHub, setup, or an invite or reset link).

Request Body

application/json
  1. body
email*string

Trimmed and lowercased.

Lengthlength <= 254
current_password*string
Length1 <= length <= 1024

Response Body

Changed.

application/json
  1. response
email*string
Example Request
curl -X POST 'https://sluby.example.com/api/v1/auth/email/change' \  -H 'Content-Type: application/json' \  -d '{  "email": "string",  "current_password": "string"}'
Example Response
{  "email": "string"}