music nerd

Users and profileRecord the user-name prompt

Users and profile

Record the user-name prompt

Marks that the caller has been shown the one-time prompt to choose a user name, and says whether to show it now. showPrompt is true only the first time, and only while the generated name still needs confirmation; every later call returns false.

POST/api/user/{id}/name-prompt
POST/api/user/6f1d2e3a-4b5c-4d6e-8f90-a1b2c3d4e5f6/name-prompt

Marks that the caller has been shown the one-time prompt to choose a user name, and says whether to show it now. showPrompt is true only the first time, and only while the generated name still needs confirmation; every later call returns false.

Authorization

Authorizationstringrequired

The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. Every route here answers about that user only. Kept in this tab only.

Path

idstringrequired

The caller's user id (a UUID).

cURL
curl --request POST \
  --url 'https://musicnerd-api.vercel.app/api/user/6f1d2e3a-4b5c-4d6e-8f90-a1b2c3d4e5f6/name-prompt'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>. The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. Every route here answers about that user only.

Path Parameters

idstringrequired

The caller's user id (a UUID).

Response

application/json

Whether to show the prompt.

statusstring · enumrequired

Values: "ok"

showPromptbooleanrequired

True when this call recorded the prompt for the first time.