Authorizations
Path Parameters
The ID of the user whose data should be deleted
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>"
}
}
Delete user personal data while keeping the user record for analytics. This anonymizes the user by removing personal information and replacing email/username with deleted user indicators.
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>"
}
}
The ID of the user whose data should be deleted
Was this page helpful?