POST
/
v3
/
user
curl --request POST \
  --url https://safe.dfda.earth/api/v3/user \
  --header 'Content-Type: application/json' \
  --header 'X-CLIENT-ID: <api-key>' \
  --header 'X-CLIENT-SECRET: <api-key>' \
  --data '{
  "clientUserId": "<string>",
  "combineNotifications": true,
  "description": "<string>",
  "displayName": "<string>",
  "earliestReminderTime": "<string>",
  "email": "<string>",
  "firstName": "<string>",
  "getPreviewBuilds": true,
  "hasAndroidApp": true,
  "hasChromeExtension": true,
  "hasIosApp": true,
  "lastActive": "<string>",
  "lastName": "<string>",
  "latestReminderTime": "<string>",
  "loginName": "<string>",
  "password": "<string>",
  "phoneNumber": "<string>",
  "phoneVerificationCode": "<string>",
  "primaryOutcomeVariableId": 123,
  "primaryOutcomeVariableName": "<string>",
  "pushNotificationsEnabled": true,
  "sendPredictorEmails": true,
  "sendReminderNotificationEmails": true,
  "shareAllData": true,
  "smsNotificationsEnabled": true,
  "timeZoneOffset": 123,
  "trackLocation": true,
  "userUrl": "<string>"
}'

Authorizations

X-CLIENT-ID
string
header
required

Client ID for authentication from https://builder.dfda.earth

X-CLIENT-SECRET
string
header
required

Backend secret allowing you to store and retrieve data for your users. Obtain from https://builder.dfda.earth

Body

application/json

User info to update

The main thing you need here is the clientUserId that will be needed to fetch the user later.

Response

201

Successful operation