You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'This method deletes user and address entries from DB and schedules a background task to delete messages. You can call this method several times even if the user has already been deleted, in case there are still some pending messages.',
2216
+
tags: ['Users'],
2217
+
validationObjs: {
2218
+
requestBody: {},
2219
+
queryParams: {
2220
+
deleteAfter: Joi.date()
2221
+
.empty('')
2222
+
.allow(false)
2223
+
.default(false)
2224
+
.description(
2225
+
'Delete user entry from registry but keep all user data until provided date. User account is fully recoverable up to that date.'
2226
+
),
2227
+
sess: sessSchema,
2228
+
ip: sessIPSchema
2229
+
},
2230
+
pathParams: {
2231
+
user: userId
2232
+
},
2233
+
response: {
2234
+
200: {
2235
+
description: 'Success',
2236
+
model: Joi.object({
2237
+
success: successRes,
2238
+
code: Joi.string().example('TaskScheduled').description('Task code. Should be TaskScheduled'),
2239
+
user: Joi.string().description('User ID'),
2240
+
addresses: Joi.object({
2241
+
deleted: Joi.number().description('Number of deleted addresses')
2242
+
}),
2243
+
deleteAfter: Joi.date().description('Delete after date'),
'Use this endpoint to cancel a timed deletion task scheduled by DELETE /user/{id}. If user data is not yet deleted then the account is fully recovered, except any email addresses that might have been already recycled',
2395
+
tags: ['Users'],
2396
+
validationObjs: {
2397
+
requestBody: {
2398
+
sess: sessSchema,
2399
+
ip: sessIPSchema
2400
+
},
2401
+
queryParams: {},
2402
+
pathParams: {
2403
+
user: userId
2404
+
},
2405
+
response: {
2406
+
200: {
2407
+
description: 'Success',
2408
+
model: Joi.object({
2409
+
success: successRes,
2410
+
code: Joi.string().required().description('Task status code'),
0 commit comments