Update my info
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/integration/me \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"username": "<string>",
"bio": "<string>",
"displayName": "<string>",
"profilePictureUrl": "<string>",
"socialHandles": {
"instagram": "<string>",
"loyaltyCardNumber": "<string>",
"tiktok": "<string>"
}
}
'import requests
url = "https://{subdomain}.nudj.cx/api/v2/integration/me"
payload = {
"username": "<string>",
"bio": "<string>",
"displayName": "<string>",
"profilePictureUrl": "<string>",
"socialHandles": {
"instagram": "<string>",
"loyaltyCardNumber": "<string>",
"tiktok": "<string>"
}
}
headers = {
"x-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
username: '<string>',
bio: '<string>',
displayName: '<string>',
profilePictureUrl: '<string>',
socialHandles: {instagram: '<string>', loyaltyCardNumber: '<string>', tiktok: '<string>'}
})
};
fetch('https://{subdomain}.nudj.cx/api/v2/integration/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.nudj.cx/api/v2/integration/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'username' => '<string>',
'bio' => '<string>',
'displayName' => '<string>',
'profilePictureUrl' => '<string>',
'socialHandles' => [
'instagram' => '<string>',
'loyaltyCardNumber' => '<string>',
'tiktok' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.nudj.cx/api/v2/integration/me"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"bio\": \"<string>\",\n \"displayName\": \"<string>\",\n \"profilePictureUrl\": \"<string>\",\n \"socialHandles\": {\n \"instagram\": \"<string>\",\n \"loyaltyCardNumber\": \"<string>\",\n \"tiktok\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://{subdomain}.nudj.cx/api/v2/integration/me")
.header("x-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"<string>\",\n \"bio\": \"<string>\",\n \"displayName\": \"<string>\",\n \"profilePictureUrl\": \"<string>\",\n \"socialHandles\": {\n \"instagram\": \"<string>\",\n \"loyaltyCardNumber\": \"<string>\",\n \"tiktok\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.nudj.cx/api/v2/integration/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"<string>\",\n \"bio\": \"<string>\",\n \"displayName\": \"<string>\",\n \"profilePictureUrl\": \"<string>\",\n \"socialHandles\": {\n \"instagram\": \"<string>\",\n \"loyaltyCardNumber\": \"<string>\",\n \"tiktok\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"username": "<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>",
"roles": [
"<string>"
],
"email": "<string>",
"isAnonymous": true,
"level": 1,
"completedChallenges": 0,
"earnedRewards": 0,
"enteredGiveaways": 0,
"organisationId": "<string>",
"displayName": "<string>",
"bio": "<string>",
"profilePictureUrl": "<string>",
"emailVerified": "<string>",
"locale": "<string>",
"socialHandles": {
"instagram": "<string>",
"loyaltyCardNumber": "<string>",
"tiktok": "<string>"
},
"fullName": "John Doe",
"parentEmail": "<string>",
"birthDay": 123,
"birthMonth": 123,
"birthYear": 123,
"externalUserId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Me
Update my info
Update the current user’s information.
PATCH
/
me
Update my info
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/integration/me \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"username": "<string>",
"bio": "<string>",
"displayName": "<string>",
"profilePictureUrl": "<string>",
"socialHandles": {
"instagram": "<string>",
"loyaltyCardNumber": "<string>",
"tiktok": "<string>"
}
}
'import requests
url = "https://{subdomain}.nudj.cx/api/v2/integration/me"
payload = {
"username": "<string>",
"bio": "<string>",
"displayName": "<string>",
"profilePictureUrl": "<string>",
"socialHandles": {
"instagram": "<string>",
"loyaltyCardNumber": "<string>",
"tiktok": "<string>"
}
}
headers = {
"x-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
username: '<string>',
bio: '<string>',
displayName: '<string>',
profilePictureUrl: '<string>',
socialHandles: {instagram: '<string>', loyaltyCardNumber: '<string>', tiktok: '<string>'}
})
};
fetch('https://{subdomain}.nudj.cx/api/v2/integration/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.nudj.cx/api/v2/integration/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'username' => '<string>',
'bio' => '<string>',
'displayName' => '<string>',
'profilePictureUrl' => '<string>',
'socialHandles' => [
'instagram' => '<string>',
'loyaltyCardNumber' => '<string>',
'tiktok' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.nudj.cx/api/v2/integration/me"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"bio\": \"<string>\",\n \"displayName\": \"<string>\",\n \"profilePictureUrl\": \"<string>\",\n \"socialHandles\": {\n \"instagram\": \"<string>\",\n \"loyaltyCardNumber\": \"<string>\",\n \"tiktok\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://{subdomain}.nudj.cx/api/v2/integration/me")
.header("x-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"<string>\",\n \"bio\": \"<string>\",\n \"displayName\": \"<string>\",\n \"profilePictureUrl\": \"<string>\",\n \"socialHandles\": {\n \"instagram\": \"<string>\",\n \"loyaltyCardNumber\": \"<string>\",\n \"tiktok\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.nudj.cx/api/v2/integration/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"<string>\",\n \"bio\": \"<string>\",\n \"displayName\": \"<string>\",\n \"profilePictureUrl\": \"<string>\",\n \"socialHandles\": {\n \"instagram\": \"<string>\",\n \"loyaltyCardNumber\": \"<string>\",\n \"tiktok\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"username": "<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>",
"roles": [
"<string>"
],
"email": "<string>",
"isAnonymous": true,
"level": 1,
"completedChallenges": 0,
"earnedRewards": 0,
"enteredGiveaways": 0,
"organisationId": "<string>",
"displayName": "<string>",
"bio": "<string>",
"profilePictureUrl": "<string>",
"emailVerified": "<string>",
"locale": "<string>",
"socialHandles": {
"instagram": "<string>",
"loyaltyCardNumber": "<string>",
"tiktok": "<string>"
},
"fullName": "John Doe",
"parentEmail": "<string>",
"birthDay": 123,
"birthMonth": 123,
"birthYear": 123,
"externalUserId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Authorizations
Body
application/json
Response
Successful response
A user
User XP Breakdown
Show child attributes
Show child attributes
Show child attributes
Show child attributes
User's current level, calculated based on total XP earned
Required range:
x >= 0Total number of challenges completed by the user
Required range:
x >= 0Total number of rewards earned by the user
Required range:
x >= 0Total number of giveaways the user has entered
Required range:
x >= 0Social media handles and loyalty information for a user
Show child attributes
Show child attributes
Example:
"John Doe"
Was this page helpful?
⌘I

