Params:
None
Query:
None
Headers:
Cookie: rds-session: <JWT-SUPERUSER>
Success Response:
Code: 200
{
"message": "User image verification record fetched successfully!",
"data": [
{
"discordId": "12345",
"userId": "1234567abcd",
"discord": {
"url": "<https://cdn.discordapp.com/avatars/abc/1234abcd.png>",
"approved": false,
"date": {
"_seconds": 1686518413,
"_nanoseconds": 453000000
}
},
"profile": {
"url": "<https://res.cloudinary.com/avatars/1234/something.png>",
"approved": false,
"date": {
"_seconds": 1686518413,
"_nanoseconds": 453000000
},
"publicId": "profile/1234567abcd/umgnk8o7ujrzbmy"
},
"status": "PENDING"
}
]
}
Error Response:
{ "statusCode": 500, "error": "Internal Server Error", "message": "An internal server error occurred" }Params:
userId (string): The ID of the user whose image verification record is to be fetched.Query:
None
Headers:
Cookie: rds-session: <JWT>
Success Response:
Code: 200
{
"message": "User image verification record fetched successfully!",
"data": {
"discordId": "12345",
"userId": "1234567abcd",
"discord": {
"url": "<https://cdn.discordapp.com/avatars/abc/1234abcd.png>",
"approved": false,
"date": {
"_seconds": 1686518413,
"_nanoseconds": 453000000
}
},
"profile": {
"url": "<https://res.cloudinary.com/avatars/1234/something.png>",
"approved": false,
"date": {
"_seconds": 1686518413,
"_nanoseconds": 453000000
},
"publicId": "profile/1234567abcd/umgnk8o7ujrzbmy"
},
"status": "PENDING"
}
}
Error Response:
{ "statusCode": 500, "error": "Internal Server Error", "message": "An internal server error occurred" }Params:
userId (string): The ID of the user whose image verification record is to be updated.Query:
type (string, required): The type of verification to be updated, which can be 'discord', 'profile', or 'both'.status (string, required): The status of the verification, which can be 'APPROVED' or 'REJECTED'.Headers:
Cookie: rds-session: <JWT-SUPERUSER>
Success Response:
Code: 200
{
"message": "<verificationResponse>"
}