Skip to main content
DELETE
/
users
/
{id}
Delete user personal data
curl --request DELETE \
  --url https://{subdomain}.nudj.cx/api/v2/admin/users/{id} \
  --header 'x-api-token: <api-key>'
{
  "success": true,
  "message": "<string>",
  "user": {
    "id": "<string>",
    "organisationId": "<string>",
    "username": "<string>",
    "displayName": "<string>",
    "bio": "<string>",
    "profilePictureUrl": "<string>",
    "emailVerified": "<string>",
    "locale": "<string>",
    "points": 123,
    "keys": 123,
    "xp": {
      "total": 1,
      "knowledge": 1,
      "creativity": 1,
      "loyalty": 1,
      "influence": 1,
      "participation": 1,
      "contribution": 1
    },
    "communityData": [
      {
        "communityId": "<string>",
        "streak": {
          "currentStreak": 1,
          "lastExtendedAt": "<string>",
          "longestStreak": 1
        },
        "challengesCompleted": 1,
        "achievementsCompleted": 1,
        "points": 123,
        "xp": {
          "total": 1,
          "knowledge": 1,
          "creativity": 1,
          "loyalty": 1,
          "influence": 1,
          "participation": 1,
          "contribution": 1
        },
        "hasAcceptedRules": true
      }
    ],
    "createdAt": "<string>",
    "socialHandles": {
      "instagram": "<string>",
      "loyaltyCardNumber": "<string>",
      "tiktok": "<string>"
    },
    "roles": [
      "<string>"
    ],
    "email": "<string>",
    "fullName": "John Doe",
    "parentEmail": "<string>",
    "birthDay": 123,
    "birthMonth": 123,
    "birthYear": 123,
    "externalUserId": "<string>",
    "isAnonymous": true,
    "updatedAt": "<string>"
  }
}

Authorizations

x-api-token
string
header
required

Path Parameters

id
string
required

The ID of the user whose data should be deleted

Response

Successful response

The output of the delete user data operation

success
boolean
required
message
string | null
user
object | null

A user

I