/api/v1/me (PATCH)
PATCH
/api/v1/me
const url = 'https://example.com/api/v1/me';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"suggestLocation":true,"hidePersonal":true,"locale":"ar","units":"metric","region":"419"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/me \ --header 'Content-Type: application/json' \ --data '{ "suggestLocation": true, "hidePersonal": true, "locale": "ar", "units": "metric", "region": "419" }'Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
suggestLocation
required
boolean
hidePersonal
required
boolean
locale
required
string
units
required
string
region
required
string | null
Example
{ "units": "metric"}