weallwegot
(juicecounty.prodigy)
27.Апрель.2021 02:20:57
5
Конечная точка API для анонимизации:
HTTP-метод: PUT
Конечная точка: https://example-community.dev/admin/users/{id}/anonymize
Hi folks, I’m trying to hit the endpoint to anonymize a user in Discourse; I’ve got single sign-on between WordPress and Discourse set up, and when the user deletes their account on WordPress I want to anonymize them in Discourse. The endpoint is
/admin/users/{id}/anonymize:
put:
description: |
Anonymize a user
tags:
- Admin
parameters:
- name: id
in: path
required: true
type: integer
responses:
'200':
description: succesfully anonymized user
…
Вы можете использовать приведенный выше вызов, чтобы получить значение {id}, если вам уже известен адрес электронной почты пользователя, которого вы хотите анонимизировать.