User

Backfill current user's browser language

Captures the Accept-Language header from a live dashboard visit and, only if the caller's signup Accept-Language was never recorded, saves it and its derived primary subtag. A no-op for a caller who already has a value on file.

post/user/me/browser-language

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/user/me/browser-language
  • Auth: none declared. Required headers: Authorization

Headers

Authorizationstring required

JWT token in the form Token <jwt>

Request body

accept_languagestring

AcceptLanguage is the raw Accept-Language header captured from a live console visit (already ASCII-filtered and length-capped by the frontend, same as the OAuth signup path — see the SignupAcceptLanguage comment on models.User).

Response

Backfill result

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "updated": true
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.