Skip to main content
PUT
/
account
/
privacy-settings-v2
Update Account Privacy Settings (V2)
curl --request PUT \
  --url https://api.dontdie.com/account/privacy-settings-v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-dd-client-id: <api-key>' \
  --data '
{
  "isPrivate": true,
  "socialPostVisibility": "EVERYONE",
  "healthPostVisibility": "EVERYONE",
  "activityVisibility": "EVERYONE",
  "physicalPerformanceVisibility": "EVERYONE",
  "labBiomarkerVisibility": "EVERYONE",
  "protocolVisibility": "EVERYONE",
  "shareLocationOnProfile": true,
  "directMessagesAccess": "EVERYONE"
}
'
{
  "message": "Privacy setting updated successfully",
  "data": {
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "isPrivate": false,
    "socialPostVisibility": "EVERYONE",
    "healthPostVisibility": "EVERYONE",
    "activityVisibility": "EVERYONE",
    "physicalPerformanceVisibility": "EVERYONE",
    "labBiomarkerVisibility": "EVERYONE",
    "protocolVisibility": "EVERYONE",
    "shareLocationOnProfile": true,
    "directMessagesAccess": "EVERYONE"
  }
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format: Bearer

x-dd-client-id
string
header
required

Your API client ID for the request

Body

application/json
isPrivate
boolean

Whether the account is private

socialPostVisibility
enum<string>

Visibility setting for social posts

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
healthPostVisibility
enum<string>

Visibility setting for health posts

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
activityVisibility
enum<string>

Visibility setting for activity

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
physicalPerformanceVisibility
enum<string>

Visibility setting for physical performance

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
labBiomarkerVisibility
enum<string>

Visibility setting for lab biomarkers

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
protocolVisibility
enum<string>

Visibility setting for protocols

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
shareLocationOnProfile
boolean

Whether to share location on profile

directMessagesAccess
enum<string>

Who can send direct messages

Available options:
EVERYONE,
FOLLOWED_USERS,
NO_ONE

Response

OK

message
string
Example:

"Privacy setting updated successfully"

data
object